From 2fa45a3fdbf327945db4bef63625c53ec5da1b09 Mon Sep 17 00:00:00 2001
From: PureCloud Jenkins
Date: Fri, 20 Dec 2024 14:43:10 +0000
Subject: [PATCH] 211.1.0
---
README.md | 6 +-
build/README.md | 6 +-
.../dist/node/purecloud-platform-client-v2.js | 166 ++++++++---------
.../web-amd/purecloud-platform-client-v2.js | 166 ++++++++---------
.../purecloud-platform-client-v2.min.js | 2 +-
build/dist/web-cjs/bundle.js | 166 ++++++++---------
.../web-cjs/purecloud-platform-client-v2.js | 168 +++++++++---------
.../purecloud-platform-client-v2.min.js | 2 +-
build/docs/AgentAssistantsApi.md | 2 +-
build/docs/AgentCopilotApi.md | 2 +-
build/docs/AgentUIApi.md | 2 +-
build/docs/AlertingApi.md | 2 +-
build/docs/AnalyticsApi.md | 2 +-
build/docs/ArchitectApi.md | 2 +-
build/docs/AuditApi.md | 2 +-
build/docs/AuthorizationApi.md | 2 +-
build/docs/BillingApi.md | 2 +-
build/docs/CarrierServicesApi.md | 2 +-
build/docs/ChatApi.md | 2 +-
build/docs/CoachingApi.md | 2 +-
build/docs/ContentManagementApi.md | 2 +-
build/docs/ConversationsApi.md | 2 +-
build/docs/DataExtensionsApi.md | 2 +-
build/docs/DataPrivacyApi.md | 2 +-
build/docs/DownloadsApi.md | 2 +-
build/docs/EmailsApi.md | 2 +-
build/docs/EmployeeEngagementApi.md | 2 +-
build/docs/EventsApi.md | 2 +-
build/docs/ExternalContactsApi.md | 2 +-
build/docs/FaxApi.md | 2 +-
build/docs/FlowsApi.md | 2 +-
build/docs/GamificationApi.md | 2 +-
.../GeneralDataProtectionRegulationApi.md | 2 +-
build/docs/GeolocationApi.md | 2 +-
build/docs/GreetingsApi.md | 2 +-
build/docs/GroupsApi.md | 2 +-
build/docs/IdentityProviderApi.md | 2 +-
build/docs/InfrastructureAsCodeApi.md | 2 +-
build/docs/IntegrationsApi.md | 2 +-
build/docs/JourneyApi.md | 2 +-
build/docs/KnowledgeApi.md | 2 +-
build/docs/LanguageUnderstandingApi.md | 2 +-
build/docs/LanguagesApi.md | 2 +-
build/docs/LearningApi.md | 2 +-
build/docs/LicenseApi.md | 2 +-
build/docs/LocationsApi.md | 2 +-
build/docs/LogCaptureApi.md | 2 +-
build/docs/MessagingApi.md | 2 +-
build/docs/MobileDevicesApi.md | 2 +-
build/docs/NotificationsApi.md | 2 +-
build/docs/OAuthApi.md | 2 +-
build/docs/ObjectsApi.md | 2 +-
build/docs/OperationalEventsApi.md | 2 +-
build/docs/OrganizationApi.md | 2 +-
build/docs/OrganizationAuthorizationApi.md | 2 +-
build/docs/OutboundApi.md | 2 +-
build/docs/PresenceApi.md | 2 +-
build/docs/ProcessAutomationApi.md | 2 +-
build/docs/QualityApi.md | 2 +-
build/docs/RecordingApi.md | 2 +-
build/docs/ResponseManagementApi.md | 2 +-
build/docs/RoutingApi.md | 2 +-
build/docs/SCIMApi.md | 2 +-
build/docs/ScreenRecordingApi.md | 2 +-
build/docs/ScriptsApi.md | 2 +-
build/docs/SearchApi.md | 2 +-
build/docs/SettingsApi.md | 2 +-
build/docs/SocialMediaApi.md | 2 +-
build/docs/SpeechTextAnalyticsApi.md | 2 +-
build/docs/StationsApi.md | 2 +-
build/docs/SuggestApi.md | 2 +-
build/docs/TaskManagementApi.md | 2 +-
build/docs/TeamsApi.md | 2 +-
build/docs/TelephonyApi.md | 2 +-
build/docs/TelephonyProvidersEdgeApi.md | 2 +-
build/docs/TextbotsApi.md | 2 +-
build/docs/TokensApi.md | 2 +-
build/docs/UploadsApi.md | 2 +-
build/docs/UsageApi.md | 2 +-
build/docs/UserRecordingsApi.md | 2 +-
build/docs/UsersApi.md | 2 +-
build/docs/UtilitiesApi.md | 2 +-
build/docs/VoicemailApi.md | 2 +-
build/docs/WebChatApi.md | 2 +-
build/docs/WebDeploymentsApi.md | 2 +-
build/docs/WebMessagingApi.md | 2 +-
build/docs/WidgetsApi.md | 2 +-
build/docs/WorkforceManagementApi.md | 2 +-
build/docs/index.md | 6 +-
build/package-lock.json | 60 ++++---
build/package.json | 2 +-
.../purecloud-platform-client-v2/ApiClient.js | 4 +-
.../api/AgentAssistantsApi.js | 2 +-
.../api/AgentCopilotApi.js | 2 +-
.../api/AgentUIApi.js | 2 +-
.../api/AlertingApi.js | 2 +-
.../api/AnalyticsApi.js | 2 +-
.../api/ArchitectApi.js | 2 +-
.../api/AuditApi.js | 2 +-
.../api/AuthorizationApi.js | 2 +-
.../api/BillingApi.js | 2 +-
.../api/CarrierServicesApi.js | 2 +-
.../api/ChatApi.js | 2 +-
.../api/CoachingApi.js | 2 +-
.../api/ContentManagementApi.js | 2 +-
.../api/ConversationsApi.js | 2 +-
.../api/DataExtensionsApi.js | 2 +-
.../api/DataPrivacyApi.js | 2 +-
.../api/DownloadsApi.js | 2 +-
.../api/EmailsApi.js | 2 +-
.../api/EmployeeEngagementApi.js | 2 +-
.../api/EventsApi.js | 2 +-
.../api/ExternalContactsApi.js | 2 +-
.../api/FaxApi.js | 2 +-
.../api/FlowsApi.js | 2 +-
.../api/GamificationApi.js | 2 +-
.../api/GeneralDataProtectionRegulationApi.js | 2 +-
.../api/GeolocationApi.js | 2 +-
.../api/GreetingsApi.js | 2 +-
.../api/GroupsApi.js | 2 +-
.../api/IdentityProviderApi.js | 2 +-
.../api/InfrastructureAsCodeApi.js | 2 +-
.../api/IntegrationsApi.js | 2 +-
.../api/JourneyApi.js | 2 +-
.../api/KnowledgeApi.js | 2 +-
.../api/LanguageUnderstandingApi.js | 2 +-
.../api/LanguagesApi.js | 2 +-
.../api/LearningApi.js | 2 +-
.../api/LicenseApi.js | 2 +-
.../api/LocationsApi.js | 2 +-
.../api/LogCaptureApi.js | 2 +-
.../api/MessagingApi.js | 2 +-
.../api/MobileDevicesApi.js | 2 +-
.../api/NotificationsApi.js | 2 +-
.../api/OAuthApi.js | 2 +-
.../api/ObjectsApi.js | 2 +-
.../api/OperationalEventsApi.js | 2 +-
.../api/OrganizationApi.js | 2 +-
.../api/OrganizationAuthorizationApi.js | 2 +-
.../api/OutboundApi.js | 2 +-
.../api/PresenceApi.js | 2 +-
.../api/ProcessAutomationApi.js | 2 +-
.../api/QualityApi.js | 2 +-
.../api/RecordingApi.js | 2 +-
.../api/ResponseManagementApi.js | 2 +-
.../api/RoutingApi.js | 2 +-
.../api/SCIMApi.js | 2 +-
.../api/ScreenRecordingApi.js | 2 +-
.../api/ScriptsApi.js | 2 +-
.../api/SearchApi.js | 2 +-
.../api/SettingsApi.js | 2 +-
.../api/SocialMediaApi.js | 2 +-
.../api/SpeechTextAnalyticsApi.js | 2 +-
.../api/StationsApi.js | 2 +-
.../api/SuggestApi.js | 2 +-
.../api/TaskManagementApi.js | 2 +-
.../api/TeamsApi.js | 2 +-
.../api/TelephonyApi.js | 2 +-
.../api/TelephonyProvidersEdgeApi.js | 2 +-
.../api/TextbotsApi.js | 2 +-
.../api/TokensApi.js | 2 +-
.../api/UploadsApi.js | 2 +-
.../api/UsageApi.js | 2 +-
.../api/UserRecordingsApi.js | 2 +-
.../api/UsersApi.js | 2 +-
.../api/UtilitiesApi.js | 2 +-
.../api/VoicemailApi.js | 2 +-
.../api/WebChatApi.js | 2 +-
.../api/WebDeploymentsApi.js | 2 +-
.../api/WebMessagingApi.js | 2 +-
.../api/WidgetsApi.js | 2 +-
.../api/WorkforceManagementApi.js | 2 +-
.../src/purecloud-platform-client-v2/index.js | 2 +-
version.json | 6 +-
174 files changed, 544 insertions(+), 538 deletions(-)
diff --git a/README.md b/README.md
index 1c928a7b..490b3893 100644
--- a/README.md
+++ b/README.md
@@ -6,7 +6,7 @@ A JavaScript library to interface with the Genesys Cloud Platform API. View the
[![npm](https://img.shields.io/npm/v/purecloud-platform-client-v2.svg)](https://www.npmjs.com/package/purecloud-platform-client-v2)
[![Release Notes Badge](https://developer-content.genesys.cloud/images/sdk-release-notes.png)](https://github.com/MyPureCloud/platform-client-sdk-javascript/blob/master/releaseNotes.md)
-Documentation version purecloud-platform-client-v2@211.0.0
+Documentation version purecloud-platform-client-v2@211.1.0
## Preview APIs
@@ -29,7 +29,7 @@ For direct use in a browser script:
```html
-
+
diff --git a/build/README.md b/build/README.md
index 1c928a7b..490b3893 100644
--- a/build/README.md
+++ b/build/README.md
@@ -6,7 +6,7 @@ A JavaScript library to interface with the Genesys Cloud Platform API. View the
[![npm](https://img.shields.io/npm/v/purecloud-platform-client-v2.svg)](https://www.npmjs.com/package/purecloud-platform-client-v2)
[![Release Notes Badge](https://developer-content.genesys.cloud/images/sdk-release-notes.png)](https://github.com/MyPureCloud/platform-client-sdk-javascript/blob/master/releaseNotes.md)
-Documentation version purecloud-platform-client-v2@211.0.0
+Documentation version purecloud-platform-client-v2@211.1.0
## Preview APIs
@@ -29,7 +29,7 @@ For direct use in a browser script:
```html
-
+
diff --git a/build/dist/node/purecloud-platform-client-v2.js b/build/dist/node/purecloud-platform-client-v2.js
index d6b59e8d..2822438e 100644
--- a/build/dist/node/purecloud-platform-client-v2.js
+++ b/build/dist/node/purecloud-platform-client-v2.js
@@ -622,7 +622,7 @@ class DefaultHttpClient extends AbstractHttpClient{
/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 211.0.0
+ * @version 211.1.0
*/
class ApiClient {
/**
@@ -1595,7 +1595,7 @@ class ApiClient {
'Authorization': 'Basic ' + encodedData,
'Content-Type': 'application/x-www-form-urlencoded'
};
- var requestOptions = new HttpRequestOptions(loginBasePath, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
const httpClient = this.getHttpClient();
return httpClient.request(requestOptions);
}
@@ -2142,7 +2142,7 @@ class AgentAssistantsApi {
/**
* AgentAssistants service.
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2518,7 +2518,7 @@ class AgentCopilotApi {
/**
* AgentCopilot service.
* @module purecloud-platform-client-v2/api/AgentCopilotApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2594,7 +2594,7 @@ class AgentUIApi {
/**
* AgentUI service.
* @module purecloud-platform-client-v2/api/AgentUIApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2725,7 +2725,7 @@ class AlertingApi {
/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -3386,7 +3386,7 @@ class AnalyticsApi {
/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -5999,7 +5999,7 @@ class ArchitectApi {
/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -10121,7 +10121,7 @@ class AuditApi {
/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -10322,7 +10322,7 @@ class AuthorizationApi {
/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11605,7 +11605,7 @@ class BillingApi {
/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11685,7 +11685,7 @@ class CarrierServicesApi {
/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11755,7 +11755,7 @@ class ChatApi {
/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -12691,7 +12691,7 @@ class CoachingApi {
/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -13268,7 +13268,7 @@ class ContentManagementApi {
/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -14349,7 +14349,7 @@ class ConversationsApi {
/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21490,7 +21490,7 @@ class DataExtensionsApi {
/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21576,7 +21576,7 @@ class DataPrivacyApi {
/**
* DataPrivacy service.
* @module purecloud-platform-client-v2/api/DataPrivacyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21746,7 +21746,7 @@ class DownloadsApi {
/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21798,7 +21798,7 @@ class EmailsApi {
/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21863,7 +21863,7 @@ class EmployeeEngagementApi {
/**
* EmployeeEngagement service.
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -22014,7 +22014,7 @@ class EventsApi {
/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -22110,7 +22110,7 @@ class ExternalContactsApi {
/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -24674,7 +24674,7 @@ class FaxApi {
/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -24889,7 +24889,7 @@ class FlowsApi {
/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -25072,7 +25072,7 @@ class GamificationApi {
/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27158,7 +27158,7 @@ class GeneralDataProtectionRegulationApi {
/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27288,7 +27288,7 @@ class GeolocationApi {
/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27419,7 +27419,7 @@ class GreetingsApi {
/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27874,7 +27874,7 @@ class GroupsApi {
/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -28393,7 +28393,7 @@ class IdentityProviderApi {
/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -29254,7 +29254,7 @@ class InfrastructureAsCodeApi {
/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -29421,7 +29421,7 @@ class IntegrationsApi {
/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -31863,7 +31863,7 @@ class JourneyApi {
/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -33828,7 +33828,7 @@ class KnowledgeApi {
/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -37704,7 +37704,7 @@ class LanguageUnderstandingApi {
/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -38738,7 +38738,7 @@ class LanguagesApi {
/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -38960,7 +38960,7 @@ class LearningApi {
/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -39989,7 +39989,7 @@ class LicenseApi {
/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40227,7 +40227,7 @@ class LocationsApi {
/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40463,7 +40463,7 @@ class LogCaptureApi {
/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40663,7 +40663,7 @@ class MessagingApi {
/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41022,7 +41022,7 @@ class MobileDevicesApi {
/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41173,7 +41173,7 @@ class NotificationsApi {
/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41406,7 +41406,7 @@ class OAuthApi {
/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41772,7 +41772,7 @@ class ObjectsApi {
/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42042,7 +42042,7 @@ class OperationalEventsApi {
/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42159,7 +42159,7 @@ class OrganizationApi {
/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42701,7 +42701,7 @@ class OrganizationAuthorizationApi {
/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -44095,7 +44095,7 @@ class OutboundApi {
/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -48642,7 +48642,7 @@ class PresenceApi {
/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -49386,7 +49386,7 @@ class ProcessAutomationApi {
/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -49625,7 +49625,7 @@ class QualityApi {
/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -51413,7 +51413,7 @@ class RecordingApi {
/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -53072,7 +53072,7 @@ class ResponseManagementApi {
/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -53582,7 +53582,7 @@ class RoutingApi {
/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -57734,7 +57734,7 @@ class SCIMApi {
/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -58611,7 +58611,7 @@ class ScreenRecordingApi {
/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -58656,7 +58656,7 @@ class ScriptsApi {
/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -59100,7 +59100,7 @@ class SearchApi {
/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -59843,7 +59843,7 @@ class SettingsApi {
/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -60063,7 +60063,7 @@ class SocialMediaApi {
/**
* SocialMedia service.
* @module purecloud-platform-client-v2/api/SocialMediaApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -60968,7 +60968,7 @@ class SpeechTextAnalyticsApi {
/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62303,7 +62303,7 @@ class StationsApi {
/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62405,7 +62405,7 @@ class SuggestApi {
/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62544,7 +62544,7 @@ class TaskManagementApi {
/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64208,7 +64208,7 @@ class TeamsApi {
/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64513,7 +64513,7 @@ class TelephonyApi {
/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64695,7 +64695,7 @@ class TelephonyProvidersEdgeApi {
/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68146,7 +68146,7 @@ class TextbotsApi {
/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68274,7 +68274,7 @@ class TokensApi {
/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68428,7 +68428,7 @@ class UploadsApi {
/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68697,7 +68697,7 @@ class UsageApi {
/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68912,7 +68912,7 @@ class UserRecordingsApi {
/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -69127,7 +69127,7 @@ class UsersApi {
/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -71956,7 +71956,7 @@ class UtilitiesApi {
/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -72067,7 +72067,7 @@ class VoicemailApi {
/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -72789,7 +72789,7 @@ class WebChatApi {
/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73340,7 +73340,7 @@ class WebDeploymentsApi {
/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73867,7 +73867,7 @@ class WebMessagingApi {
/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73913,7 +73913,7 @@ class WidgetsApi {
/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -74059,7 +74059,7 @@ class WorkforceManagementApi {
/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -81265,7 +81265,7 @@ class WorkforceManagementApi {
*
*
* @module purecloud-platform-client-v2/index
- * @version 211.0.0
+ * @version 211.1.0
*/
class platformClient {
constructor() {
diff --git a/build/dist/web-amd/purecloud-platform-client-v2.js b/build/dist/web-amd/purecloud-platform-client-v2.js
index 23b901ee..8cc9eba3 100644
--- a/build/dist/web-amd/purecloud-platform-client-v2.js
+++ b/build/dist/web-amd/purecloud-platform-client-v2.js
@@ -618,7 +618,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 211.0.0
+ * @version 211.1.0
*/
class ApiClient {
/**
@@ -1591,7 +1591,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
'Authorization': 'Basic ' + encodedData,
'Content-Type': 'application/x-www-form-urlencoded'
};
- var requestOptions = new HttpRequestOptions(loginBasePath, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, qs__default["default"].stringify(data), this.timeout);
const httpClient = this.getHttpClient();
return httpClient.request(requestOptions);
}
@@ -2138,7 +2138,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* AgentAssistants service.
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2514,7 +2514,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* AgentCopilot service.
* @module purecloud-platform-client-v2/api/AgentCopilotApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2590,7 +2590,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* AgentUI service.
* @module purecloud-platform-client-v2/api/AgentUIApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -2721,7 +2721,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -3382,7 +3382,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -5995,7 +5995,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -10117,7 +10117,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -10318,7 +10318,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11601,7 +11601,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11681,7 +11681,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -11751,7 +11751,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -12687,7 +12687,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -13264,7 +13264,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -14345,7 +14345,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21486,7 +21486,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21572,7 +21572,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* DataPrivacy service.
* @module purecloud-platform-client-v2/api/DataPrivacyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21742,7 +21742,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21794,7 +21794,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -21859,7 +21859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* EmployeeEngagement service.
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -22010,7 +22010,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -22106,7 +22106,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -24670,7 +24670,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -24885,7 +24885,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -25068,7 +25068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27154,7 +27154,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27284,7 +27284,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27415,7 +27415,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -27870,7 +27870,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -28389,7 +28389,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -29250,7 +29250,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -29417,7 +29417,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -31859,7 +31859,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -33824,7 +33824,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -37700,7 +37700,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -38734,7 +38734,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -38956,7 +38956,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -39985,7 +39985,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40223,7 +40223,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40459,7 +40459,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -40659,7 +40659,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41018,7 +41018,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41169,7 +41169,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41402,7 +41402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -41768,7 +41768,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42038,7 +42038,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42155,7 +42155,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -42697,7 +42697,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -44091,7 +44091,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -48638,7 +48638,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -49382,7 +49382,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -49621,7 +49621,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -51409,7 +51409,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -53068,7 +53068,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -53578,7 +53578,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -57730,7 +57730,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -58607,7 +58607,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -58652,7 +58652,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -59096,7 +59096,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -59839,7 +59839,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -60059,7 +60059,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* SocialMedia service.
* @module purecloud-platform-client-v2/api/SocialMediaApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -60964,7 +60964,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62299,7 +62299,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62401,7 +62401,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -62540,7 +62540,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64204,7 +64204,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64509,7 +64509,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -64691,7 +64691,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68142,7 +68142,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68270,7 +68270,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68424,7 +68424,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68693,7 +68693,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -68908,7 +68908,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -69123,7 +69123,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -71952,7 +71952,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -72063,7 +72063,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -72785,7 +72785,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73336,7 +73336,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73863,7 +73863,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -73909,7 +73909,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -74055,7 +74055,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
@@ -81261,7 +81261,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
*
*
* @module purecloud-platform-client-v2/index
- * @version 211.0.0
+ * @version 211.1.0
*/
class platformClient {
constructor() {
diff --git a/build/dist/web-amd/purecloud-platform-client-v2.min.js b/build/dist/web-amd/purecloud-platform-client-v2.min.js
index d5d0b4cb..8566be9f 100644
--- a/build/dist/web-amd/purecloud-platform-client-v2.min.js
+++ b/build/dist/web-amd/purecloud-platform-client-v2.min.js
@@ -1 +1 @@
-define(["https","axios","qs"],function(e,i,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),o=n(i),r=n(t),l={us_east_1:"mypurecloud.com",eu_west_1:"mypurecloud.ie",ap_southeast_2:"mypurecloud.com.au",ap_northeast_1:"mypurecloud.jp",eu_central_1:"mypurecloud.de",us_west_2:"usw2.pure.cloud",ca_central_1:"cac1.pure.cloud",ap_northeast_2:"apne2.pure.cloud",eu_west_2:"euw2.pure.cloud",ap_south_1:"aps1.pure.cloud",us_east_2:"use2.us-gov-pure.cloud",sa_east_1:"sae1.pure.cloud",me_central_1:"mec1.pure.cloud",ap_northeast_3:"apne3.pure.cloud",eu_central_2:"euc2.pure.cloud"};const s={levels:{none:0,error:1,debug:2,trace:3}},p={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},u={formats:{JSON:"json",TEXT:"text"}};class d{get logLevelEnum(){return p}get logFormatEnum(){return u}constructor(){this.log_level=p.level.LNone,this.log_format=u.formats.TEXT,this.log_to_console=!0,this.log_file_path,this.log_response_body=!1,this.log_request_body=!1,this.setLogger()}setLogger(){if("undefined"==typeof window){const e=require("winston");this.logger=e.createLogger({levels:s.levels,level:this.log_level}),this.log_file_path&&""!==this.log_file_path&&(this.log_format===u.formats.JSON?this.logger.add(new e.transports.File({format:e.format.json(),filename:this.log_file_path})):this.logger.add(new e.transports.File({format:e.format.combine(e.format(e=>(e.level=e.level.toUpperCase(),e))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===u.formats.JSON?this.logger.add(new e.transports.Console({format:e.format.json()})):this.logger.add(new e.transports.Console({format:e.format.combine(e.format(e=>(e.level=e.level.toUpperCase(),e))(),e.format.simple())})))}}log(e,i,t,n,a,o,r,l){var s=this.formatLog(e,i,t,n,a,o,r,l);"undefined"!=typeof window?this.calculateLogLevel(e)>0&&!0===this.log_to_console&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(s):console.log(`${e.toUpperCase()}: ${s}`)):this.logger.transports.length>0&&this.logger.log(e,s)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,t,n,a,o,r,l){var s,p=a?JSON.parse(JSON.stringify(a)):null,d=o?JSON.parse(JSON.stringify(o)):null,c=r?JSON.parse(JSON.stringify(r)):null,g=l?JSON.parse(JSON.stringify(l)):null;return a&&(p.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===u.formats.JSON?(s={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"",statusCode:i},p&&(s.requestHeaders=p),d&&(s.responseHeaders=d),c&&(s.requestBody=c),g&&(s.responseBody=g)):s=`${(new Date).toISOString()}\n=== REQUEST === \n${this.formatValue("URL",decodeURIComponent(n))}${this.formatValue("Method",t)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("Body",c?JSON.stringify(c,null,2):"")}\n=== RESPONSE ===\n${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderString(d))}${this.formatValue("CorrelationId",d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"")}${this.formatValue("Body",g?JSON.stringify(g,null,2):"")}`,s}formatHeaderString(e){var i="";if(!e)return i;for(const[t,n]of Object.entries(e))i+=`\n\t${t}: ${n}`;return i}formatValue(e,i){return i&&""!==i&&"{}"!==i?`${e}: ${i}\n`:""}getLogLevel(e){switch(e){case"error":return p.level.LError;case"debug":return p.level.LDebug;case"trace":return p.level.LTrace;default:return p.level.LNone}}getLogFormat(e){switch(e){case"json":return u.formats.JSON;default:return u.formats.TEXT}}}class c{get instance(){return c.instance}set instance(e){c.instance=e}constructor(){if(c.instance||(c.instance=this),"undefined"!=typeof window)this.configPath="";else{const e=require("os"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.refresh_access_token=!0,this.refresh_token_wait_max=10,this.live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new d,this.setEnvironment(),this.liveLoadConfig()}liveLoadConfig(){if("undefined"!=typeof window)this.configPath="";else if(this.updateConfigFromFile(),this.live_reload_config&&!0===this.live_reload_config)try{const e=require("fs");e.watchFile(this.configPath,{persistent:!1},(i,t)=>{this.updateConfigFromFile(),this.live_reload_config||e.unwatchFile(this.configPath)})}catch(e){}}setConfigPath(e){e&&e!==this.configPath&&(this.configPath=e,this.liveLoadConfig())}updateConfigFromFile(){if("undefined"==typeof window){const t=require("configparser");try{var e=new t;e.read(this.configPath),this.config=e}catch(e){if(e.name&&"MissingSectionHeaderError"===e.name){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=void 0!==this.getConfigBoolean("logging","log_to_console")?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=void 0!==this.getConfigString("logging","log_file_path")?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=void 0!==this.getConfigBoolean("logging","log_response_body")?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=void 0!==this.getConfigBoolean("logging","log_request_body")?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=void 0!==this.getConfigBoolean("reauthentication","refresh_access_token")?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=void 0!==this.getConfigInt("reauthentication","refresh_token_wait_max")?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=void 0!==this.getConfigBoolean("general","live_reload_config")?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=void 0!==this.getConfigString("general","host")?this.getConfigString("general","host"):this.host,void 0!==this.getConfigString("gateway","host")){let e={host:this.getConfigString("gateway","host")};void 0!==this.getConfigString("gateway","protocol")&&(e.protocol=this.getConfigString("gateway","protocol")),void 0!==this.getConfigInt("gateway","port")&&(e.port=this.getConfigInt("gateway","port")),void 0!==this.getConfigString("gateway","path_params_login")&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),void 0!==this.getConfigString("gateway","path_params_api")&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),void 0!==this.getConfigString("gateway","username")&&(e.username=this.getConfigString("gateway","username")),void 0!==this.getConfigString("gateway","password")&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){this.environment=e||(this.host?this.host:"mypurecloud.com"),this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway)return i;if(!this.gateway.host)return i;var t=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(t=t+":"+this.gateway.port.toString()),"login"===e?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?t+=this.gateway.path_params_login:t=t+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?t+=this.gateway.path_params_api:t=t+"/"+this.gateway.path_params_api),t}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&void 0!==this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?"true"===this.config._sections[e][i]:this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}}class g{constructor(){this.timeout=16e3}setTimeout(e){if(null===e||void 0===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}setHttpsAgent(e){if(e&&"object"!=typeof e)throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}request(e){throw new Error("method must be implemented")}}class h{constructor(e,i,t,n,a,o){this.setUrl(e),this.setMethod(i),t&&this.setHeaders(t),n&&this.setParams(n),a&&this.setData(a),null!==o&&void 0!==o?this.setTimeout(o):this.timeout=16e3}setUrl(e){if(!e)throw new Error("The 'url' property is required");this.url=e}setMethod(e){if(!e||!["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"].includes(e.toUpperCase()))throw new Error("The 'method' property is invalid or missing");this.method=e.toUpperCase()}setData(e){if(void 0===e||null===e)throw new Error("The 'data' property is required");this.data=e}setParams(e){if(e&&"object"!=typeof e)throw new Error("The 'params' property must be an object");this.params=e}setHeaders(e){if(e&&"object"!=typeof e)throw new Error("The 'headers' property must be an object");this.headers=e}setTimeout(e){if(void 0===e||null===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}}class m extends g{constructor(e,i){super(),null!==e&&void 0!==e?this.setTimeout(e):this.timeout=16e3,null!==i&&void 0!==i?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=o.default.create({})}request(e){if(!(e instanceof h))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");const i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),null!=this.timeout&&void 0!=this.timeout&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}}class w{get instance(){return w.instance}set instance(e){w.instance=e}constructor(){w.instance||(w.instance=this),this.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"};try{localStorage.setItem("purecloud_local_storage_test","purecloud_local_storage_test"),localStorage.removeItem("purecloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this.authentications={"Guest Chat JWT":{type:"apiKey",in:"header",name:"Authorization"},"PureCloud OAuth":{type:"oauth2"}},this.defaultHeaders={},this.timeout=16e3,this.authData={},this.settingsPrefix="purecloud",this.refreshInProgress=!1,this.httpClient,this.proxyAgent,this.config=new c,"undefined"!=typeof window&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.replace(/\W+/g,"_"):"purecloud"}_saveSettings(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;let i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(e){console.error(e)}}_loadSettings(){if(!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;const e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}setEnvironment(e){this.config.setEnvironment(e)}setHttpClient(e){if(!(e instanceof g))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}getHttpClient(){return this.httpClient?this.httpClient:(this.httpClient=new m(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,t){if("undefined"!=typeof window)throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead");{const n={};e&&(n.cert=require("fs").readFileSync(e)),i&&(n.key=require("fs").readFileSync(i)),t&&(n.ca=require("fs").readFileSync(t)),n.rejectUnauthorized=!0,this.proxyAgent=new a.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}}setMTLSContents(e,i,t){const n={};e&&(n.cert=e),i&&(n.key=i),t&&(n.ca=t),n.rejectUnauthorized=!0,this.proxyAgent=new a.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,t){const n=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,t||(t={}),new Promise((e,i)=>{if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),n&&n.error)return n.accessToken=void 0,this._saveSettings(n),i(new Error(`[${n.error}] ${n.error_description}`));this._testTokenAccess().then(()=>{!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData)}).catch(e=>{var i={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=this._buildAuthUrl("oauth/authorize",i);window.location.replace(n)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var t=Buffer.from(`${e}:${i}`).toString("base64"),n=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((e,i)=>{if("undefined"!=typeof window)return void i(new Error("The client credentials grant is not supported in a browser."));const a={Authorization:`Basic ${t}`};var o=new h(`${n}/oauth/token`,"POST",a,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(o).then(i=>{this.config.logger.log("trace",i.status,"POST",`${n}/oauth/token`,a,i.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",i.status,"POST",`${n}/oauth/token`,a,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(i.data.access_token),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*i.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),e(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${n}/oauth/token`,a,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})})}loginSaml2BearerGrant(e,i,t,n){this.clientId=e;var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((o,r)=>{if("undefined"==typeof window){var l=Buffer.from(e+":"+i).toString("base64"),s=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});s.proxy=this.proxy;var p={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};s.then(e=>{this.config.logger.log("trace",e.status,"POST",`${a}/oauth/token`,s.headers,e.headers,p,void 0),this.config.logger.log("debug",e.status,"POST",`${a}/oauth/token`,s.headers,void 0,p,void 0);var i=e.data.access_token;this.setAccessToken(i),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),o(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${a}/oauth/token`,s.headers,e.response.headers,p,e.response.data),r(e)})}else r(new Error("The saml2bearer grant is not supported in a browser."))})}authorizePKCEGrant(e,i,t,n){this.clientId=e;var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((o,l)=>{var s=r.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n}),p=new h(`${a}/oauth/token`,"POST",{"Content-Type":"application/x-www-form-urlencoded"},null,s,this.timeout);const u=this.getHttpClient();var d={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n};u.request(p).then(e=>{this.config.logger.log("trace",e.status,"POST",`${a}/oauth/token`,p.headers,e.headers,d,void 0),this.config.logger.log("debug",e.status,"POST",`${a}/oauth/token`,p.headers,void 0,d,void 0);var i=e.data.access_token;this.setAccessToken(i),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),o(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${a}/oauth/token`,p.headers,e.response.headers,d,e.response.data),l(e)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if("undefined"!=typeof window){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(e=>i[e%i.length]).join("")}try{const i=require("crypto").getRandomValues,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(e=>t[e%t.length]).join("")}catch(e){throw new Error("Crypto module is missing/not supported.")}}computePKCECodeChallenge(e){if(e.length<43||e.length>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if("undefined"!=typeof window){const i=(new TextEncoder).encode(e);return new Promise((e,t)=>{window.crypto.subtle.digest("SHA-256",i).then(i=>{let t=Buffer.from(i).toString("base64").replaceAll("+","-").replaceAll("/","_");t=t.split("=")[0],e(t)}).catch(e=>t(new Error(`Code Challenge Error ${e}`)))})}try{const i=require("crypto").createHash,t=(new TextEncoder).encode(e);return new Promise((e,n)=>{const a=i("sha256").update(t).digest();e(Buffer.from(a).toString("base64url"))})}catch(e){throw new Error("Crypto module is missing/not supported.")}}loginPKCEGrant(e,i,t,n){if(!this.hasLocalStorage&&!n)throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");const a=this._setValuesFromUrlQuery();return this.clientId=e,this.redirectUri=i,this.codeVerifier=n,t||(t={}),new Promise((e,i)=>{if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),a&&a.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),i(new Error(`[${a.error}] ${a.error_description}`));a&&a.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,a.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&a.state&&(this.authData.state=a.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),e(this.authData)}).catch(e=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error(`[${e.name}] ${e.msg}`))))}).catch(e=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error(`[${e.name}] ${e.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData)}).catch(e=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(e=>{var i={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(e),response_type:"code",code_challenge_method:"S256"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=this._buildAuthUrl("oauth/authorize",i);window.location.replace(n)}).catch(e=>i(new Error(`[${e.name}]`)))})})}_setValuesFromUrlQuery(){if("undefined"==typeof window||!window.location.search)return;let e={},i=new URLSearchParams(window.location.search),t=i.get("code"),n=i.get("error"),a=i.get("error_description"),o=i.get("state");if(n)return e.error=n,a&&(e.error_description=a),e;t&&(e.code=t,o&&(e.state=o));var r,l,s=window.location;return"replaceState"in history?history.replaceState("",document.title,s.pathname):(r=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,s.pathname),document.body.scrollTop=r,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,t,n){return this.clientId=e,this.clientSecret=i,new Promise((a,o)=>{if("undefined"==typeof window){var r=Buffer.from(e+":"+i).toString("base64"),l=this._formAuthRequest(r,{grant_type:"authorization_code",code:t,redirect_uri:n});l.proxy=this.proxy;var s={grant_type:"authorization_code",code:t,redirect_uri:n};this._handleCodeAuthorizationResponse(l,s,a,o)}else o(new Error("The Code Authorization grant is not supported in a browser."))})}refreshCodeAuthorizationGrant(e,i,t){return new Promise((n,a)=>{if("undefined"==typeof window){var o=Buffer.from(e+":"+i).toString("base64"),r=this._formAuthRequest(o,{grant_type:"refresh_token",refresh_token:t});r.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:t};this._handleCodeAuthorizationResponse(r,l,n,a)}else a(new Error("The Code Authorization grant is not supported in a browser."))})}_handleCodeAuthorizationResponse(e,i,t,n){var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);e.then(n=>{this.config.logger.log("trace",n.status,"POST",`${a}/oauth/token`,e.headers,n.headers,i,void 0),this.config.logger.log("debug",n.status,"POST",`${a}/oauth/token`,e.headers,void 0,i,void 0);var o=n.data.access_token,r=n.data.refresh_token;this.setAccessToken(o),this.authData.refreshToken=r,this.authData.tokenExpiryTime=(new Date).getTime()+1e3*n.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),t(this.authData)}).catch(t=>{t.response&&this.config.logger.log("error",t.response.status,"POST",`${a}/oauth/token`,e.headers,t.response.headers,i,t.response.data),n(t)})}_formAuthRequest(e,i){var t=this.config.getConfUrl("login",`https://login.${this.config.environment}`),n=new h(t,"POST",{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},null,r.default.stringify(i),this.timeout);return this.getHttpClient().request(n)}_handleExpiredAccessToken(){return new Promise((e,i)=>{"undefined"==typeof window?this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(new Error(`Token refresh took longer than ${this.config.refresh_token_wait_max} seconds`)):e()}):(this.refreshInProgress=!0,this.refreshCodeAuthorizationGrant(this.clientId,this.clientSecret,this.authData.refreshToken).then(()=>{this.refreshInProgress=!1,e()}).catch(e=>{this.refreshInProgress=!1,i(e)})):i(new Error("This method is not supported in a browser."))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{this._loadSettings(),this.authentications["PureCloud OAuth"].accessToken?this.callApi("/api/v2/tokens/me","GET",null,null,null,null,null,["PureCloud OAuth"],["application/json"],["application/json"]).then(()=>{e()}).catch(e=>{this._saveSettings({accessToken:void 0}),i(e)}):i(new Error("Token is not set"))})}_setValuesFromUrlHash(){if("undefined"==typeof window||!window.location.hash)return;const e=new RegExp("^#*(.+?)=(.+?)$","i");let i={};if(window.location.hash.split("&").forEach(t=>{const n=e.exec(t);n&&(i[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let e={};i.state&&(e.state=i.state),i.expires_in&&(e.tokenExpiryTime=(new Date).getTime()+1e3*parseInt(i.expires_in.replace(/\+/g,"%20")),e.tokenExpiryTimeString=new Date(e.tokenExpiryTime).toUTCString()),e.accessToken=i.access_token.replace(/\+/g,"%20");var t,n,a=window.location;"replaceState"in history?history.replaceState("",document.title,a.pathname+a.search):(t=document.body.scrollTop,n=document.body.scrollLeft,a.hash="",document.body.scrollTop=t,document.body.scrollLeft=n),this._saveSettings(e)}}setAccessToken(e){this._saveSettings({accessToken:e})}setStorageKey(e){this.storageKey=e,this.setAccessToken(this.authentications["PureCloud OAuth"].accessToken)}logout(e){this.hasLocalStorage&&this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0});var i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var t=this._buildAuthUrl("logout",i);window.location.replace(t)}_buildAuthUrl(e,i){i||(i={});var t=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((e,t)=>i[t]?`${e}&${t}=${i[t]}`:e,`${t}/${e}?`)}paramToString(e){return e?e instanceof Date?e.toJSON():e instanceof Boolean?e.toString().toLowerCase():e.toString():""}serialize(e){var i={};for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(i[encodeURIComponent(t)]=Array.isArray(e[t])?e[t].join(","):this.paramToString(e[t]));return i}addHeaders(e,...i){return e=e?Object.assign(e,...i):Object.assign(...i)}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var t=this.config.getConfUrl("api",this.config.basePath)+e;return t=t.replace(/\{([\w-]+)\}/g,(e,t)=>{var n;return n=i.hasOwnProperty(t)?this.paramToString(i[t]):e,encodeURIComponent(n)})}isJsonMime(e){return Boolean(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i{var t=this.authentications[i];switch(t.type){case"basic":(t.username||t.password)&&(e.auth={username:t.username||"",password:t.password||""});break;case"apiKey":if(t.apiKey){var n={};t.apiKeyPrefix?n[t.name]=`${t.apiKeyPrefix} ${t.apiKey}`:n[t.name]=t.apiKey,"header"===t.in?e.headers=this.addHeaders(e.headers,n):e.setParams(this.serialize(n))}break;case"oauth2":t.accessToken&&(e.headers=this.addHeaders(e.headers,{Authorization:`Bearer ${t.accessToken}`}));break;default:throw new Error(`Unknown authentication type: ${t.type}`)}})}setProxyAgent(e){this.proxyAgent=e,this.getHttpClient().setHttpsAgent(this.proxyAgent)}callApi(e,i,t,n,a,o,r,l,s,p){return new Promise((u,d)=>{!function c(g){var m=g.buildUrl(e,t);var w=new h(m,i,null,g.serialize(n),null,g.timeout);g.applyAuthToRequest(w,l);const v=g.defaultHeaders;const C=g.normalizeParams(a);w.headers=g.addHeaders(w.headers,v,C);var I=g.jsonPreferredMime(s);I?w.headers["Content-Type"]=I:w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json");if("application/x-www-form-urlencoded"===I)w.setData(g.normalizeParams(o));else if("multipart/form-data"==I){var f=g.normalizeParams(o);for(var A in f)if(f.hasOwnProperty(A)){var b=new FormData;b.set(A,f[A]),w.setData(b)}}else r&&w.setData(r);var j=g.jsonPreferredMime(p);j&&(w.headers.Accept=j);const P=g.getHttpClient();P.request(w).then(e=>{var t=!0===g.returnExtended?{status:e.status,statusText:e.statusText,headers:e.headers,body:e.data,text:e.text,error:null}:e.data?e.data:e.text;g.config.logger.log("trace",e.status,i,m,w.headers,e.headers,r,void 0),g.config.logger.log("debug",e.status,i,m,w.headers,void 0,r,void 0),u(t)}).catch(e=>{var t=e;e.response&&401==e.response.status&&g.config.refresh_access_token&&g.authData.refreshToken&&""!==g.authData.refreshToken?g._handleExpiredAccessToken().then(()=>{c(g)}).catch(e=>{d(e)}):e.response&&(g.config.logger.log("error",e.response.status,i,m,w.headers,e.response.headers,r,e.response.data),t=!0===g.returnExtended?{status:e.response.status,statusText:e.response.statusText,headers:e.response.headers,body:e.response.data,text:e.response.text,error:e}:e.response.data?e.response.data:e.response.text),d(t)})}(this)})}}class v{constructor(e){this.apiClient=e||w.instance}deleteAssistant(e){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","DELETE",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAssistantQueue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAssistantQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","DELETE",{assistantId:e},{queueIds:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistant(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantQueue(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","GET",{assistantId:e},{before:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistants(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAssistant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling patchAssistant';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchAssistantQueues(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAssistants(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAssistants';return this.apiClient.callApi("/api/v2/assistants","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAssistantQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class C{constructor(e){this.apiClient=e||w.instance}getAssistantCopilot(e){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","GET",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putAssistantCopilot(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class I{constructor(e){this.apiClient=e||w.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class f{constructor(e){this.apiClient=e||w.instance}deleteAlertingAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling deleteAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","DELETE",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingInteractionstatsAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling deleteAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","DELETE",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingInteractionstatsRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling getAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","GET",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingAlertsActive(){return this.apiClient.callApi("/api/v2/alerting/alerts/active","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling getAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","GET",{alertId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlerts(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlertsUnread(){return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/unread","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsRule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","GET",{ruleId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsRules(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/interactionstats/rules","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingAlertsBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAlertingAlertsBulk';return this.apiClient.callApi("/api/v2/alerting/alerts/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingRulesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAlertingRulesBulk';return this.apiClient.callApi("/api/v2/alerting/rules/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingAlertsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/alerts/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingInteractionstatsRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingInteractionstatsRules';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingRules';return this.apiClient.callApi("/api/v2/alerting/rules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRulesBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingRulesBulkRemove';return this.apiClient.callApi("/api/v2/alerting/rules/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRulesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/rules/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingInteractionstatsAlert(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling putAlertingInteractionstatsAlert';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","PUT",{alertId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingInteractionstatsRule(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling putAlertingInteractionstatsRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","PUT",{ruleId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class A{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsActionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsAgentcopilotsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/reportingturns","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowSessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowSessions';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/sessions","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsDataretentionSettings(){return this.apiClient.callApi("/api/v2/analytics/dataretention/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowexecutionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsKnowledgeAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingDashboardsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingDashboardsUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users","GET",{},{sortBy:e.sortBy,pageNumber:e.pageNumber,pageSize:e.pageSize,id:this.apiClient.buildCollectionParam(e.id,"multi"),state:e.state,deletedOnly:e.deletedOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingExports(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/exports","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingExportsMetadata(){return this.apiClient.callApi("/api/v2/analytics/reporting/exports/metadata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettings(){return this.apiClient.callApi("/api/v2/analytics/reporting/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettingsDashboardsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(void 0===i||null===i)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:t.name,dashboardType:e,dashboardAccessFilter:i,sortBy:t.sortBy,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/users/{userId}/dashboards","GET",{userId:e},{sortBy:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsResolutionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTaskmanagementAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTranscriptsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAnalyticsReportingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';return this.apiClient.callApi("/api/v2/analytics/reporting/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsActionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsActionsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsAgentcopilotsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsAgentcopilotsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsBotsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsBotsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationDetailsProperties(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsTranscriptsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/transcripts/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowexecutionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowexecutionsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsKnowledgeAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsKnowledgeAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsQueuesObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRatelimitsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/ratelimits/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingDashboardsUsersBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingExports(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingExports';return this.apiClient.callApi("/api/v2/analytics/reporting/exports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSettingsDashboardsBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSettingsDashboardsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsResolutionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTaskmanagementAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTaskmanagementAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTranscriptsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTranscriptsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAnalyticsDataretentionSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';return this.apiClient.callApi("/api/v2/analytics/dataretention/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class b{constructor(e){this.apiClient=e||w.instance}deleteArchitectEmergencygroup(e){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling deleteArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","DELETE",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammar(e){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","DELETE",{grammarId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguageFilesDtmf(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguageFilesVoice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectIvr(e){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling deleteArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","DELETE",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPrompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","DELETE",{promptId:e},{allResources:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPromptResourceAudio(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResourceAudio';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPrompts(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling deleteArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","DELETE",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSchedulegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling deleteArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","DELETE",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSystempromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlow(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling deleteFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowInstancesSettingsLoglevels(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling deleteFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlows(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteFlows';return this.apiClient.callApi("/api/v2/flows","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsDatatable(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","DELETE",{datatableId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsDatatableRow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsInstancesSettingsLoglevelsDefault(){return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsMilestone(e){if(void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling deleteFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","DELETE",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytracking(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingBuild(){return this.apiClient.callApi("/api/v2/architect/dependencytracking/build","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingConsumedresources(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(void 0===i||null===i)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(void 0===t||null===t)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:t,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingConsumingresources(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(t.resourceType,"multi"),version:t.version,pageNumber:t.pageNumber,pageSize:t.pageSize,flowFilter:t.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingDeletedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/deletedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),flowFilter:e.flowFilter,consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingObject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingType(e){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getArchitectDependencytrackingType';return this.apiClient.callApi("/api/v2/architect/dependencytracking/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/types","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingUpdatedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/updatedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroup(e){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling getArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","GET",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammar(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling getArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","GET",{grammarId:e},{includeFileUrls:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammarLanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammars(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/grammars","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeFileUrls:e.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvr(e){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling getArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","GET",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvrs(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,dnis:e.dnis,scheduleGroup:e.scheduleGroup},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvrsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPrompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","GET",{promptId:e},{includeMediaUris:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptResources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","GET",{promptId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling getArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","GET",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,scheduleIds:e.scheduleIds,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystemprompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystemprompt';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}","GET",{promptId:e},{includeMediaUris:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptResources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","GET",{promptId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystemprompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/systemprompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlow(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","GET",{flowId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowLatestconfiguration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowLatestconfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/latestconfiguration","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:t.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionConfiguration(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:t.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionHealth(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:t.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionIntentHealth(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(void 0===t||null===t)throw'Missing the required parameter "intentId" when calling getFlowVersionIntentHealth';if(void 0===n||null===n)throw'Missing the required parameter "language" when calling getFlowVersionIntentHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/health","GET",{flowId:e,versionId:i,intentId:t},{language:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionIntentUtteranceHealth(e,i,t,n,a){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===t||null===t)throw'Missing the required parameter "intentId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===n||null===n)throw'Missing the required parameter "utteranceId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===a||null===a)throw'Missing the required parameter "language" when calling getFlowVersionIntentUtteranceHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/utterances/{utteranceId}/health","GET",{flowId:e,versionId:i,intentId:t,utteranceId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","GET",{flowId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlows(e){return e=e||{},this.apiClient.callApi("/api/v2/flows","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,publishVersionId:e.publishVersionId,editableBy:e.editableBy,lockedBy:e.lockedBy,lockedByClientId:e.lockedByClientId,secure:e.secure,deleted:e.deleted,includeSchemas:e.includeSchemas,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatable(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","GET",{datatableId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling getFlowsDatatableExportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}","GET",{datatableId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling getFlowsDatatableImportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}","GET",{datatableId:e,importJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableImportJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","GET",{datatableId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableRow(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:t.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableRows(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","GET",{datatableId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatables(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatablesDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatablesDivisionview';return this.apiClient.callApi("/api/v2/flows/datatables/divisionviews/{datatableId}","GET",{datatableId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatablesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables/divisionviews","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/divisionviews","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,publishVersionId:e.publishVersionId,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeSchemas:e.includeSchemas},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsExecution(e){if(void 0===e||null===e)throw'Missing the required parameter "flowExecutionId" when calling getFlowsExecution';return this.apiClient.callApi("/api/v2/flows/executions/{flowExecutionId}","GET",{flowExecutionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstance(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "instanceId" when calling getFlowsInstance';return this.apiClient.callApi("/api/v2/flows/instances/{instanceId}","GET",{instanceId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getFlowsInstancesJob';return this.apiClient.callApi("/api/v2/flows/instances/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesQuerycapabilities(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/querycapabilities","GET",{},{expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsExecutiondata(){return this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevels(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevelsCharacteristics(){return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/characteristics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevelsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsJob(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getFlowsJob';return this.apiClient.callApi("/api/v2/flows/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestone(e){if(void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling getFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","GET",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestonesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "flowOutcomeId" when calling getFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","GET",{flowOutcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchArchitectGrammar(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchArchitectGrammarLanguage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchFlowsInstancesSettingsExecutiondata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchFlowsInstancesSettingsExecutiondata';return this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectDependencytrackingBuild(){return this.apiClient.callApi("/api/v2/architect/dependencytracking/build","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectEmergencygroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectEmergencygroups';return this.apiClient.callApi("/api/v2/architect/emergencygroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguageFilesDtmf(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","POST",{grammarId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguageFilesVoice(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","POST",{grammarId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammars(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectGrammars';return this.apiClient.callApi("/api/v2/architect/grammars","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectIvrs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectIvrs';return this.apiClient.callApi("/api/v2/architect/ivrs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPromptHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectPromptHistory';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPromptResources(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPrompts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSchedulegroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectSchedulegroups';return this.apiClient.callApi("/api/v2/architect/schedulegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectSchedules';return this.apiClient.callApi("/api/v2/architect/schedules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSystempromptHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectSystempromptHistory';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSystempromptResources(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowHistory';return this.apiClient.callApi("/api/v2/flows/{flowId}/history","POST",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowInstancesSettingsLoglevels(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","POST",{flowId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowVersions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlows(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsCheckin(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckin';return this.apiClient.callApi("/api/v2/flows/actions/checkin","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsCheckout(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckout';return this.apiClient.callApi("/api/v2/flows/actions/checkout","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsDeactivate(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsDeactivate';return this.apiClient.callApi("/api/v2/flows/actions/deactivate","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsPublish(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsRevert(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsRevert';return this.apiClient.callApi("/api/v2/flows/actions/revert","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsUnlock(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsUnlock';return this.apiClient.callApi("/api/v2/flows/actions/unlock","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableExportJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableExportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs","POST",{datatableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableImportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableRows(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(void 0===i||null===i)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatables(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsDatatables';return this.apiClient.callApi("/api/v2/flows/datatables","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsExecutions(e){if(void 0===e||null===e)throw'Missing the required parameter "flowLaunchRequest" when calling postFlowsExecutions';return this.apiClient.callApi("/api/v2/flows/executions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsInstancesJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsInstancesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsJobs(){return this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectEmergencygroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectIvr(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectPrompt(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectPromptResource(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSchedulegroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSystempromptResource(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putFlow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling putFlow';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowInstancesSettingsLoglevels(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","PUT",{flowId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsDatatable(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsDatatableRow(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling putFlowsInstancesSettingsLoglevelsDefault';return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","PUT",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsMilestone(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsOutcome(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class j{constructor(e){this.apiClient=e||w.instance}getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi("/api/v2/audits/query/realtime/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryServicemapping(){return this.apiClient.callApi("/api/v2/audits/query/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryTransactionId(e){if(void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQuery';return this.apiClient.callApi("/api/v2/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQueryRealtime(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';return this.apiClient.callApi("/api/v2/audits/query/realtime","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';return this.apiClient.callApi("/api/v2/audits/query/realtime/related","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class P{constructor(e){this.apiClient=e||w.instance}deleteAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationRole(e){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling deleteAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","DELETE",{roleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationSubjectDivisionRole(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:i,roleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionGrants(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivisionGrants';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/grants","GET",{divisionId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsHome(){return this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsLimit(){return this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedSubjectId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(void 0===i||null===i)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationPermissions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/permissions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,queryType:e.queryType,query:e.query},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationProducts(){return this.apiClient.callApi("/api/v2/authorization/products","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRole(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","GET",{roleId:e},{userCount:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleComparedefaultRightRoleId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(void 0===i||null===i)throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRoleSubjectgrants';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/subjectgrants","GET",{roleId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRoleUsers';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users","GET",{roleId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoles(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),defaultRoleId:this.apiClient.buildCollectionParam(e.defaultRoleId,"multi"),userCount:e.userCount,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRolesSettings(){return this.apiClient.callApi("/api/v2/authorization/roles/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSettings(){return this.apiClient.callApi("/api/v2/authorization/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsRolecounts(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/rolecounts","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAuthorizationRole(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchAuthorizationSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAuthorizationSettings';return this.apiClient.callApi("/api/v2/authorization/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionObject(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionRestore(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRole(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRoleComparedefaultRightRoleId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(void 0===i||null===i)throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","POST",{leftRoleId:e,rightRoleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationRoles';return this.apiClient.callApi("/api/v2/authorization/roles","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRolesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles/default","POST",{},{force:e.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkadd(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkremove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkreplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectDivisionRole(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:i,roleId:t},{subjectType:n.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationDivision(e,i){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRole(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRoleUsersAdd(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRoleUsersRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRolesDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAuthorizationRolesDefault';return this.apiClient.callApi("/api/v2/authorization/roles/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRolesSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAuthorizationRolesSettings';return this.apiClient.callApi("/api/v2/authorization/roles/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling putUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class y{constructor(e){this.apiClient=e||w.instance}getBillingReportsBillableusage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(void 0===i||null===i)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';return this.apiClient.callApi("/api/v2/billing/trusteebillingoverview/{trustorOrgId}","GET",{trustorOrgId:e},{billingPeriodIndex:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class O{constructor(e){this.apiClient=e||w.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumber" when calling getCarrierservicesIntegrationsEmergencylocationsMe';return this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","GET",{},{phoneNumber:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postCarrierservicesIntegrationsEmergencylocationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class M{constructor(e){this.apiClient=e||w.instance}deleteChatsRoomMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsRoomMessagesPin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(void 0===i||null===i)throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins/{pinnedMessageId}","DELETE",{roomJid:e,pinnedMessageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsUserMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsUserMessagesPin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(void 0===i||null===i)throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}","DELETE",{userId:e,pinnedMessageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getChatsMessage';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}","GET",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoom(e){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","GET",{roomJid:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","GET",{roomJid:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomParticipants(e){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants","GET",{roomJid:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsSettings(){return this.apiClient.callApi("/api/v2/chats/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsThreadMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';return this.apiClient.callApi("/api/v2/chats/threads/{threadId}/messages","GET",{threadId:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUser';return this.apiClient.callApi("/api/v2/chats/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","GET",{userId:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUsersMeSettings(){return this.apiClient.callApi("/api/v2/chats/users/me/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsRoom(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsRoomMessage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","PATCH",{roomJid:e,messageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUserMessage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","PATCH",{userId:e,messageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUserSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUsersMeSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchChatsUsersMeSettings';return this.apiClient.callApi("/api/v2/chats/users/me/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomMessagesPins(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRooms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postChatsRooms';return this.apiClient.callApi("/api/v2/chats/rooms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsUserMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsUserMessagesPins(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putChatsMessageReactions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putChatsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class T{constructor(e){this.apiClient=e||w.instance}deleteCoachingAppointment(e){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","DELETE",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteCoachingAppointmentAnnotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointment(e){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","GET",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentAnnotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentAnnotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","GET",{appointmentId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentStatuses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentStatuses';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/statuses","GET",{appointmentId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userIds" when calling getCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),interval:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/appointments/me","GET",{},{interval:e.interval,pageNumber:e.pageNumber,pageSize:e.pageSize,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(e.facilitatorIds,"multi"),sortOrder:e.sortOrder,relationships:this.apiClient.buildCollectionParam(e.relationships,"multi"),completionInterval:e.completionInterval,overdue:e.overdue,intervalCondition:e.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingNotification(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "notificationId" when calling getCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","GET",{notificationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/notifications","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointmentAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","PATCH",{appointmentId:e,annotationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointmentStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingNotification(e,i){if(void 0===e||null===e)throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentAnnotations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentConversations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingAppointmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/coaching/appointments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingScheduleslotsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';return this.apiClient.callApi("/api/v2/coaching/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class q{constructor(e){this.apiClient=e||w.instance}deleteContentmanagementDocument(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","DELETE",{documentId:e},{override:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementShare(e){if(void 0===e||null===e)throw'Missing the required parameter "shareId" when calling deleteContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","DELETE",{shareId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling deleteContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","DELETE",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspace(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","DELETE",{workspaceId:e},{moveChildrenToWorkspaceId:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspaceMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspaceTagvalue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocument(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","GET",{documentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocumentContent(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","GET",{documentId:e},{disposition:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSecurityprofile(e){if(void 0===e||null===e)throw'Missing the required parameter "securityProfileId" when calling getContentmanagementSecurityprofile';return this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles/{securityProfileId}","GET",{securityProfileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSecurityprofiles(){return this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementShare(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "shareId" when calling getContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","GET",{shareId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSharedSharedId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sharedId" when calling getContentmanagementSharedSharedId';return this.apiClient.callApi("/api/v2/contentmanagement/shared/{sharedId}","GET",{sharedId:e},{disposition:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementShares(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/shares","GET",{},{entityId:e.entityId,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/status","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling getContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementUsage(){return this.apiClient.callApi("/api/v2/contentmanagement/usage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspace(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/documents","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceMember(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMembers';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members","GET",{workspaceId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceTagvalue(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","GET",{workspaceId:e},{value:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaces(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/workspaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,access:this.apiClient.buildCollectionParam(e.access,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocument(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:t.expand,override:t.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocumentContent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:t.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementShares(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementShares';return this.apiClient.callApi("/api/v2/contentmanagement/shares","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaceTagvalues(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaceTagvaluesQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvaluesQuery';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query","POST",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaces(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaces';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspace(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspaceMember(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","PUT",{workspaceId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspaceTagvalue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","PUT",{workspaceId:e,tagId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class S{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationParticipantCode(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(void 0===t||null===t)throw'Missing the required parameter "addCommunicationCode" when calling deleteConversationParticipantCode';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/codes/{addCommunicationCode}","DELETE",{conversationId:e,participantId:i,addCommunicationCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationParticipantFlaggedreason(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsCallParticipantConsult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsEmailMessagesDraftAttachment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(void 0===i||null===i)throw'Missing the required parameter "attachmentId" when calling deleteConversationsEmailMessagesDraftAttachment';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/{attachmentId}","DELETE",{conversationId:e,attachmentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagesCachedmediaCachedMediaItemId(e){if(void 0===e||null===e)throw'Missing the required parameter "cachedMediaItemId" when calling deleteConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","DELETE",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsOpenIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling deleteConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantSecureivrsession(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(void 0===t||null===t)throw'Missing the required parameter "secureSessionId" when calling getConversationParticipantSecureivrsession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions/{secureSessionId}","GET",{conversationId:e,participantId:i,secureSessionId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantSecureivrsessions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSecureattributes(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSuggestion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(void 0===i||null===i)throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSuggestions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions","GET",{conversationId:e},{before:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSummaries(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSummaries';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations","GET",{},{communicationType:e.communicationType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCall(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallback(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbacks(){return this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCalls(){return this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallsMaximumconferenceparties(){return this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChat(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChats(){return this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesession(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessions(){return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmail(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessages(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessagesDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailSettings';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/settings","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmails(){return this.apiClient.callApi("/api/v2/conversations/emails","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsKeyconfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "keyconfigurationsId" when calling getConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","GET",{keyconfigurationsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsKeyconfigurations(){return this.apiClient.callApi("/api/v2/conversations/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(void 0===t||null===t)throw'Missing the required parameter "mediaId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId}","GET",{conversationId:e,communicationId:i,mediaId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageDetails(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageMessage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:t.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessages(){return this.apiClient.callApi("/api/v2/conversations/messages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagesCachedmedia(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,url:e.url},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagesCachedmediaCachedMediaItemId(e){if(void 0===e||null===e)throw'Missing the required parameter "cachedMediaItemId" when calling getConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","GET",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingFacebookApp(){return this.apiClient.callApi("/api/v2/conversations/messaging/facebook/app","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi("/api/v2/conversations/messaging/facebook/permissions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsFacebook(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsInstagram(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsOpen(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsWhatsapp(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling getConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontentDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsScreenshareParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsSettings(){return this.apiClient.callApi("/api/v2/conversations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsSocialParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideoDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';return this.apiClient.callApi("/api/v2/conversations/videos/{conferenceId}/details","GET",{conferenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideoParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideosMeeting(e){if(void 0===e||null===e)throw'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';return this.apiClient.callApi("/api/v2/conversations/videos/meetings/{meetingId}","GET",{meetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationSecureattributes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationUtilizationlabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCall(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipant';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCallParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantConsult(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipant';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbacks(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChat(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesession(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipant(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipantAttributes(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesessionParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmail(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PATCH",{conversationId:e},{autoFill:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipant';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsEmailParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantParkingstate(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantParkingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/parkingstate","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipant(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipantAttributes(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsMessageParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsMessageParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingSupportedcontentSupportedContentId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchConversationsSettings';return this.apiClient.callApi("/api/v2/conversations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationDetailsProperties(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationAssign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationBarge(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationBarge';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/barge","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationCobrowse(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationCobrowse';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/cobrowse","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationDisconnect';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/disconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantCallbacks(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantDigits(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceAgent';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/agent","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceExternal(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceExternal';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/external","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceQueue';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/queue","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantSecureivrsessions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSuggestionEngagement(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(void 0===i||null===i)throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationSuggestionEngagement';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}/engagement","POST",{conversationId:e,suggestionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSuggestionsFeedback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSummaryFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(void 0===i||null===i)throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCall(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantBarge(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantBarge';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/barge","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantCoach(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCoach';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/coach","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsult(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultAgent';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/agent","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultExternal(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultExternal';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/external","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultQueue';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/queue","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantMonitor(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipants(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbackParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbackParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallbackParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacks(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacksBulkDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkDisconnect';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/disconnect","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacksBulkUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkUpdate';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCalls(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCalls';return this.apiClient.callApi("/api/v2/conversations/calls","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatCommunicationMessages(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatCommunicationTyping(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChats(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCobrowsesessionParticipantReplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailInboundmessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailMessagesDraftAttachmentsCopy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailMessagesDraftAttachmentsCopy';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailReconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/reconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmails(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsEmails';return this.apiClient.callApi("/api/v2/conversations/emails","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailsAgentless(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsEmailsAgentless';return this.apiClient.callApi("/api/v2/conversations/emails/agentless","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsFaxes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsFaxes';return this.apiClient.callApi("/api/v2/conversations/faxes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsKeyconfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurations';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsKeyconfigurationsValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationMessages(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationMessagesMedia(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationTyping(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenEvent(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenEvent';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/event","POST",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenMessage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/message","POST",{integrationId:e},{prefetchConversationId:t.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenReceipt(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenReceipt';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/receipt","POST",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageMessagesBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantMonitor(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessages';return this.apiClient.callApi("/api/v2/conversations/messages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagesAgentless(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagesInboundOpen(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagesInboundOpen';return this.apiClient.callApi("/api/v2/conversations/messages/inbound/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsFacebook(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsFacebook';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsInstagram(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsOpen(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsWhatsapp(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsapp';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsappEmbeddedsignup';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingSettings';return this.apiClient.callApi("/api/v2/conversations/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingSupportedcontent(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsParticipantsAttributesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsScreenshareParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsSocialParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsVideoParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsVideosMeetings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsVideosMeetings';return this.apiClient.callApi("/api/v2/conversations/videos/meetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationParticipantFlaggedreason(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationSecureattributes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationTags(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationTags';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallParticipantCommunicationUuidata(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling putConversationsCallParticipantCommunicationUuidata';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata","PUT",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallbackRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsChatRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCobrowsesessionRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsEmailMessagesDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsEmailRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsKeyconfiguration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessageRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingSettingsDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingSupportedcontentDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingThreadingtimeline(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';return this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsScreenshareRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsSocialRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsVideoRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class k{constructor(e){this.apiClient=e||w.instance}getDataextensionsCoretype(e){if(void 0===e||null===e)throw'Missing the required parameter "coretypeName" when calling getDataextensionsCoretype';return this.apiClient.callApi("/api/v2/dataextensions/coretypes/{coretypeName}","GET",{coretypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataextensionsCoretypes(){return this.apiClient.callApi("/api/v2/dataextensions/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataextensionsLimits(){return this.apiClient.callApi("/api/v2/dataextensions/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class E{constructor(e){this.apiClient=e||w.instance}deleteDataprivacyMaskingrule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataprivacyMaskingrule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataprivacyMaskingrules(){return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchDataprivacyMaskingrule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDataprivacyMaskingrules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrules';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDataprivacyMaskingrulesValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class G{constructor(e){this.apiClient=e||w.instance}getDownload(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class U{constructor(e){this.apiClient=e||w.instance}getEmailsSettings(){return this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class D{constructor(e){this.apiClient=e||w.instance}deleteEmployeeengagementCelebration(e){if(void 0===e||null===e)throw'Missing the required parameter "celebrationId" when calling deleteEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","DELETE",{celebrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeengagementCelebrations(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeengagement/celebrations","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeengagementRecognition(e){if(void 0===e||null===e)throw'Missing the required parameter "recognitionId" when calling getEmployeeengagementRecognition';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions/{recognitionId}","GET",{recognitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmployeeengagementCelebration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeengagementRecognitions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class R{constructor(e){this.apiClient=e||w.instance}postEventsConversations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsConversations';return this.apiClient.callApi("/api/v2/events/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postEventsUsersPresence(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsUsersPresence';return this.apiClient.callApi("/api/v2/events/users/presence","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postEventsUsersRoutingstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';return this.apiClient.callApi("/api/v2/events/users/routingstatus","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class x{constructor(e){this.apiClient=e||w.instance}deleteExternalcontactsContact(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","DELETE",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsContactNote(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsContactsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling deleteExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsExternalsource(e){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling deleteExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","DELETE",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsImportCsvSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsImportSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganization(e){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganizationNote(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationTrustor';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsRelationship(e){if(void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling deleteExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","DELETE",{relationshipId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContact(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactIdentifiers(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","GET",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactNote(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactNotes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","GET",{contactId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactUnresolved(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/unresolved","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getExternalcontactsContactsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemas(){return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsExternalsource(e){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling getExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","GET",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","GET",{},{after:e.after,pageSize:e.pageSize,externalSettingsId:e.externalSettingsId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvUploadDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadDetails';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/details","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvUploadPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadPreview';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/preview","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,jobStatus:e.jobStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganization(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","GET",{externalOrganizationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationContacts';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationNote(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getExternalcontactsOrganizationsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsRelationship(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","GET",{relationshipId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "lookupVal" when calling getExternalcontactsReversewhitepageslookup';return this.apiClient.callApi("/api/v2/externalcontacts/reversewhitepageslookup","GET",{},{lookupVal:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/contacts","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanNotes(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/notes","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/organizations","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanRelationships(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/relationships","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchExternalcontactsContactIdentifiers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContacts';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsUnresolved(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/unresolved","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotes';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationships(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactNotes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactPromotion(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling postExternalcontactsContactPromotion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/promotion","POST",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsContacts';return this.apiClient.callApi("/api/v2/externalcontacts/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsContactsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsExternalsources(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsExternalsources';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvUploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvUploads';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsMergeContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';return this.apiClient.callApi("/api/v2/externalcontacts/merge/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizationNotes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizationsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsRelationships(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContactNote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","PUT",{contactId:e,noteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContactsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsConversation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsExternalsource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportCsvSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationNote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","PUT",{externalOrganizationId:e,noteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationTrustorTrustorId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(void 0===i||null===i)throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsRelationship(e,i){if(void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class W{constructor(e){this.apiClient=e||w.instance}deleteFaxDocument(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","DELETE",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocument(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocumentContent(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getFaxDocumentContent';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}/content","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxSettings(){return this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxSummary(){return this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putFaxDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling putFaxDocument';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class z{constructor(e){this.apiClient=e||w.instance}getAnalyticsFlowsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class B{constructor(e){this.apiClient=e||w.instance}deleteEmployeeperformanceExternalmetricsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","DELETE",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeperformanceExternalmetricsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling getEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","GET",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsights(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsights';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsights';if(void 0===a||null===a)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsights';return this.apiClient.callApi("/api/v2/gamification/insights","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,primaryPeriodStartWorkday:a,pageSize:o.pageSize,pageNumber:o.pageNumber,sortKey:o.sortKey,sortMetricId:o.sortMetricId,sortOrder:o.sortOrder,userIds:o.userIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsDetails(e,i,t,n,a){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsDetails';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsDetails';if(void 0===a||null===a)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsDetails';return this.apiClient.callApi("/api/v2/gamification/insights/details","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,primaryPeriodStartWorkday:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsGroupsTrends(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrends';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsGroupsTrendsAll(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends/all","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsMembers(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsMembers';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationInsightsMembers';return this.apiClient.callApi("/api/v2/gamification/insights/members","GET",{},{filterType:e,filterId:i,granularity:t,startWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsTrends(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsTrends';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsTrends';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/trends","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsUserDetails(e,i,t,n,a,o){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(void 0===i||null===i)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(void 0===t||null===t)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserDetails';if(void 0===n||null===n)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserDetails';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserDetails';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserDetails';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/details","GET",{userId:e},{filterType:i,filterId:t,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsUserTrends(e,i,t,n,a,o,r,l){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(void 0===t||null===t)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserTrends';if(void 0===n||null===n)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(void 0===o||null===o)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsUserTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(void 0===l||null===l)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsUserTrends';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/trends","GET",{userId:e},{filterType:i,filterId:t,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:o,primaryPeriodStartWorkday:r,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboard(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:t.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardAll(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboardAll';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboardAll';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all","GET",{},{filterType:e,filterId:i,startWorkday:t,endWorkday:n,metricId:a.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardAllBestpoints(e,i){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardBestpoints(){return this.apiClient.callApi("/api/v2/gamification/leaderboard/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationMetricdefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricDefinitionId" when calling getGamificationMetricdefinition';return this.apiClient.callApi("/api/v2/gamification/metricdefinitions/{metricDefinitionId}","GET",{metricDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationMetricdefinitions(){return this.apiClient.callApi("/api/v2/gamification/metricdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfile(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMembers(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetric(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:t.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetrics(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","GET",{profileId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetricsObjectivedetails';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/objectivedetails","GET",{profileId:e},{workday:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfiles(){return this.apiClient.callApi("/api/v2/gamification/profiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfilesUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationProfilesUser';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}","GET",{userId:e},{workday:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfilesUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/profiles/users/me","GET",{},{workday:e.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecards(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecards';return this.apiClient.callApi("/api/v2/gamification/scorecards","GET",{},{workday:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsAttendance(e,i){if(void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsBestpoints(){return this.apiClient.callApi("/api/v2/gamification/scorecards/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsAlltime(e){if(void 0===e||null===e)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/alltime","GET",{},{endWorkday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsAverage(e){if(void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecardsPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/average","GET",{},{workday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsTrends(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:t.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "userId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===a||null===a)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/{userId}/values/trends","GET",{profileId:e,metricId:i,userId:t},{startWorkday:n,endWorkday:a,referenceWorkday:o.referenceWorkday,timeZone:o.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===a||null===a)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/values/trends","GET",{profileId:e,metricId:i},{filterType:t,filterId:o.filterId,startWorkday:n,endWorkday:a,referenceWorkday:o.referenceWorkday,timeZone:o.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricValuesTrends(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/values/trends","GET",{profileId:e,metricId:i},{filterType:a.filterType,startWorkday:t,endWorkday:n,referenceWorkday:a.referenceWorkday,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(void 0===i||null===i)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserAttendance(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/attendance","GET",{userId:e},{startWorkday:i,endWorkday:t},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserBestpoints(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserBestpoints';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/bestpoints","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserPointsAlltime(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/alltime","GET",{userId:e},{endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserPointsTrends(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/trends","GET",{userId:e},{startWorkday:i,endWorkday:t,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserValuesTrends(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/values/trends","GET",{userId:e},{startWorkday:i,endWorkday:t,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersPointsAverage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(void 0===t||null===t)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/points/average","GET",{},{filterType:e,filterId:i,workday:t},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersValuesAverage(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(void 0===t||null===t)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/average","GET",{},{filterType:e,filterId:i,workday:t,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersValuesTrends(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/trends","GET",{},{filterType:e,filterId:i,startWorkday:t,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecardsValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/average","GET",{},{workday:e,timeZone:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsValuesTrends(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:t.filterType,referenceWorkday:t.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:t.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationStatus(){return this.apiClient.callApi("/api/v2/gamification/status","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "templateId" when calling getGamificationTemplate';return this.apiClient.callApi("/api/v2/gamification/templates/{templateId}","GET",{templateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationTemplates(){return this.apiClient.callApi("/api/v2/gamification/templates","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmployeeperformanceExternalmetricsDefinition(e,i){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeperformanceExternalmetricsData(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/data","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileActivate(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileActivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/activate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileDeactivate(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileDeactivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/deactivate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMembersValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMetricLink(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(void 0===i||null===i)throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postGamificationProfileMetricLink';return this.apiClient.callApi("/api/v2/gamification/profiles/{sourceProfileId}/metrics/{sourceMetricId}/link","POST",{sourceProfileId:e,sourceMetricId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMetrics(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfiles(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfilesUserQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfilesUsersMeQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGamificationProfilesUsersMeQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/me/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationProfileMetric(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","PUT",{profileId:e,metricId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationStatus(e){if(void 0===e||null===e)throw'Missing the required parameter "status" when calling putGamificationStatus';return this.apiClient.callApi("/api/v2/gamification/status","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class L{constructor(e){this.apiClient=e||w.instance}getGdprRequest(e){if(void 0===e||null===e)throw'Missing the required parameter "requestId" when calling getGdprRequest';return this.apiClient.callApi("/api/v2/gdpr/requests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGdprRequests(e){return e=e||{},this.apiClient.callApi("/api/v2/gdpr/requests","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGdprSubjects(e,i){if(void 0===e||null===e)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(void 0===i||null===i)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGdprRequests(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class N{constructor(e){this.apiClient=e||w.instance}getGeolocationsSettings(){return this.apiClient.callApi("/api/v2/geolocations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGeolocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchGeolocationsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchGeolocationsSettings';return this.apiClient.callApi("/api/v2/geolocations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserGeolocation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class K{constructor(e){this.apiClient=e||w.instance}deleteGreeting(e){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling deleteGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","DELETE",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreeting(e){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling getGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","GET",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling getGreetingMedia';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/media","GET",{greetingId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetings(e){return e=e||{},this.apiClient.callApi("/api/v2/greetings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetingsDefaults(){return this.apiClient.callApi("/api/v2/greetings/defaults","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupGreetings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGreetings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGreetings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGreetings';return this.apiClient.callApi("/api/v2/greetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupGreetings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserGreetings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserGreetings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putGreeting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling putGreeting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putGreetingsDefaults';return this.apiClient.callApi("/api/v2/greetings/defaults","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGroupGreetingsDefaults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserGreetingsDefaults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class J{constructor(e){this.apiClient=e||w.instance}deleteGroup(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteGroupDynamicsettings(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteGroupMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(void 0===i||null===i)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroup(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupDynamicsettings(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupIndividuals(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupIndividuals';return this.apiClient.callApi("/api/v2/groups/{groupId}/individuals","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupProfile';return this.apiClient.callApi("/api/v2/groups/{groupId}/profile","GET",{groupId:e},{fields:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProfilesGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling postGroupMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroups';return this.apiClient.callApi("/api/v2/groups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsDynamicsettingsPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsDynamicsettingsPreview';return this.apiClient.callApi("/api/v2/groups/dynamicsettings/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putGroupDynamicsettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class V{constructor(e){this.apiClient=e||w.instance}deleteIdentityprovider(e){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling deleteIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","DELETE",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersAdfs(){return this.apiClient.callApi("/api/v2/identityproviders/adfs","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersCic(){return this.apiClient.callApi("/api/v2/identityproviders/cic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersGeneric(){return this.apiClient.callApi("/api/v2/identityproviders/generic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersGsuite(){return this.apiClient.callApi("/api/v2/identityproviders/gsuite","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersIdentitynow(){return this.apiClient.callApi("/api/v2/identityproviders/identitynow","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersOkta(){return this.apiClient.callApi("/api/v2/identityproviders/okta","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersOnelogin(){return this.apiClient.callApi("/api/v2/identityproviders/onelogin","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPing(){return this.apiClient.callApi("/api/v2/identityproviders/ping","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPurecloud(){return this.apiClient.callApi("/api/v2/identityproviders/purecloud","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPureengage(){return this.apiClient.callApi("/api/v2/identityproviders/pureengage","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersSalesforce(){return this.apiClient.callApi("/api/v2/identityproviders/salesforce","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovider(e){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling getIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","GET",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityproviders(){return this.apiClient.callApi("/api/v2/identityproviders","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersAdfs(){return this.apiClient.callApi("/api/v2/identityproviders/adfs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersCic(){return this.apiClient.callApi("/api/v2/identityproviders/cic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersGeneric(){return this.apiClient.callApi("/api/v2/identityproviders/generic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersGsuite(){return this.apiClient.callApi("/api/v2/identityproviders/gsuite","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersIdentitynow(){return this.apiClient.callApi("/api/v2/identityproviders/identitynow","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersOkta(){return this.apiClient.callApi("/api/v2/identityproviders/okta","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersOnelogin(){return this.apiClient.callApi("/api/v2/identityproviders/onelogin","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPing(){return this.apiClient.callApi("/api/v2/identityproviders/ping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPurecloud(){return this.apiClient.callApi("/api/v2/identityproviders/purecloud","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPureengage(){return this.apiClient.callApi("/api/v2/identityproviders/pureengage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersSalesforce(){return this.apiClient.callApi("/api/v2/identityproviders/salesforce","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIdentityproviders(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIdentityproviders';return this.apiClient.callApi("/api/v2/identityproviders","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovider(e,i){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersAdfs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersAdfs';return this.apiClient.callApi("/api/v2/identityproviders/adfs","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersCic(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersCic';return this.apiClient.callApi("/api/v2/identityproviders/cic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersGeneric(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersGeneric';return this.apiClient.callApi("/api/v2/identityproviders/generic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersGsuite(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersGsuite';return this.apiClient.callApi("/api/v2/identityproviders/gsuite","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersIdentitynow(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersIdentitynow';return this.apiClient.callApi("/api/v2/identityproviders/identitynow","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersOkta(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersOkta';return this.apiClient.callApi("/api/v2/identityproviders/okta","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersOnelogin(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersOnelogin';return this.apiClient.callApi("/api/v2/identityproviders/onelogin","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPing(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPing';return this.apiClient.callApi("/api/v2/identityproviders/ping","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPurecloud(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPurecloud';return this.apiClient.callApi("/api/v2/identityproviders/purecloud","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPureengage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPureengage';return this.apiClient.callApi("/api/v2/identityproviders/pureengage","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersSalesforce(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';return this.apiClient.callApi("/api/v2/identityproviders/salesforce","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class F{constructor(e){this.apiClient=e||w.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "acceleratorId" when calling getInfrastructureascodeAccelerator';return this.apiClient.callApi("/api/v2/infrastructureascode/accelerators/{acceleratorId}","GET",{acceleratorId:e},{preferredLanguage:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeAccelerators(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/accelerators","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,origin:e.origin,type:e.type,classification:e.classification,tags:e.tags},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeJob(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getInfrastructureascodeJob';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs/{jobId}","GET",{jobId:e},{details:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/jobs","GET",{},{maxResults:e.maxResults,includeErrors:e.includeErrors,sortBy:e.sortBy,sortOrder:e.sortOrder,acceleratorId:e.acceleratorId,submittedBy:e.submittedBy,status:e.status},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postInfrastructureascodeJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Q{constructor(e){this.apiClient=e||w.instance}deleteIntegration(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsAction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling deleteIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsActionDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling deleteIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsCredential(e){if(void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling deleteIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","DELETE",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationConfigCurrent(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsAction(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","GET",{actionId:e},{expand:i.expand,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraft(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","GET",{actionId:e},{expand:i.expand,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftFunction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftSchema(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:t.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftTemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"])}getIntegrationsActionDraftValidation(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftValidation';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/validation","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionFunction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionSchema(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:t.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionTemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"])}getIntegrationsActions(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,secure:e.secure},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCertificates(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/certificates","GET",{},{status:e.status,type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCertificatesTruststore(){return this.apiClient.callApi("/api/v2/integrations/actions/certificates/truststore","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsDrafts(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/drafts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi("/api/v2/integrations/actions/functions/runtimes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBot(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:t.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}/versions","GET",{integrationId:e,botId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBots(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotsSummaries';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/summaries","GET",{integrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredential(e){if(void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling getIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","GET",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredentialsTypes(){return this.apiClient.callApi("/api/v2/integrations/credentials/types","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechAudioconnector(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/audioconnector","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechAudioconnectorIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsSpeechAudioconnectorIntegrationId';return this.apiClient.callApi("/api/v2/integrations/speech/audioconnector/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowAgent(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowcxAgent(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowcxAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowcxAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBotAlias(e){if(void 0===e||null===e)throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexBotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexBotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/{botId}/aliases","GET",{botId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lex/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2BotAlias(e){if(void 0===e||null===e)throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexv2BotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexv2BotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/{botId}/aliases","GET",{botId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2Bots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBot(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}","GET",{nuanceIntegrationId:e,botId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi"),targetChannel:t.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}","GET",{nuanceIntegrationId:e,botId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,botId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots","GET",{nuanceIntegrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}","GET",{nuanceIntegrationId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechSttEngine(e){if(void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechSttEngine';return this.apiClient.callApi("/api/v2/integrations/speech/stt/engines/{engineId}","GET",{engineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechSttEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/stt/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngine(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngine';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}","GET",{engineId:e},{includeVoices:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngineVoice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(void 0===i||null===i)throw'Missing the required parameter "voiceId" when calling getIntegrationsSpeechTtsEngineVoice';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices/{voiceId}","GET",{engineId:e,voiceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoices';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices","GET",{engineId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/tts/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,includeVoices:e.includeVoices,name:e.name,language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsSettings(){return this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsType(e){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getIntegrationsType';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsTypeConfigschema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(void 0===i||null===i)throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/types","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUnifiedcommunicationsClientapp(e){if(void 0===e||null===e)throw'Missing the required parameter "ucIntegrationId" when calling getIntegrationsUnifiedcommunicationsClientapp';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps/{ucIntegrationId}","GET",{ucIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUnifiedcommunicationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUserapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/userapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,appHost:e.appHost},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegrationsAction(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegrationsActionDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","POST",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftFunctionUpload(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftPublish(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftTest(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/test","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionExecute(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionTest(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIntegrationsActions';return this.apiClient.callApi("/api/v2/integrations/actions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionsDrafts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIntegrationsActionsDrafts';return this.apiClient.callApi("/api/v2/integrations/actions/drafts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs","POST",{nuanceIntegrationId:e,botId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs","POST",{nuanceIntegrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(void 0===i||null===i)throw'Missing the required parameter "settings" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/validate","POST",{nuanceIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationConfigCurrent(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","PUT",{integrationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsActionDraftFunction(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsBotconnectorIntegrationIdBots(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(void 0===i||null===i)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsCredential(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(void 0===i||null===i)throw'Missing the required parameter "settings" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/settings","PUT",{nuanceIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsSpeechTtsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIntegrationsSpeechTtsSettings';return this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class _{constructor(e){this.apiClient=e||w.instance}deleteJourneyActionmap(e){if(void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","DELETE",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyActiontemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling deleteJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","DELETE",{actionTemplateId:e},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling deleteJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","DELETE",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyOutcomesPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneySegment(e){if(void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling deleteJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","DELETE",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyView(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling deleteJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyViewSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling deleteJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmap(e){if(void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling getJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","GET",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,filterField:e.filterField,filterValue:e.filterValue,actionMapIds:this.apiClient.buildCollectionParam(e.actionMapIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmapsEstimatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJob';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmapsEstimatesJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJobResults';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontarget(e){if(void 0===e||null===e)throw'Missing the required parameter "actionTargetId" when calling getJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","GET",{actionTargetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontargets(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontargets","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling getJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","GET",{actionTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,mediaType:e.mediaType,state:e.state,queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyDeploymentCustomerPing(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(void 0===i||null===i)throw'Missing the required parameter "customerCookieId" when calling getJourneyDeploymentCustomerPing';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/customers/{customerCookieId}/ping","GET",{deploymentId:e,customerCookieId:i},{dl:t.dl,dt:t.dt,appNamespace:t.appNamespace,sessionId:t.sessionId,sinceLastBeaconMilliseconds:t.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling getJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","GET",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,outcomeIds:this.apiClient.buildCollectionParam(e.outcomeIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesAttributionsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJob';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesAttributionsJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJobResults';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesPredictors(){return this.apiClient.callApi("/api/v2/journey/outcomes/predictors","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySegment(e){if(void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling getJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","GET",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","GET",{},{sortBy:e.sortBy,pageSize:e.pageSize,pageNumber:e.pageNumber,isActive:e.isActive,segmentIds:this.apiClient.buildCollectionParam(e.segmentIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySession(e){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySession';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySessionEvents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySessionEvents';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/events","GET",{sessionId:e},{pageSize:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySessionOutcomescores(e){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySessionOutcomescores';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/outcomescores","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyView(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionChart(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(void 0===t||null===t)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}","GET",{viewId:e,journeyViewVersion:i,chartId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionChartVersion(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(void 0===t||null===t)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChartVersion';if(void 0===n||null===n)throw'Missing the required parameter "chartVersion" when calling getJourneyViewVersionChartVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}/versions/{chartVersion}","GET",{viewId:e,journeyViewVersion:i,chartId:t,chartVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","GET",{viewId:e,journeyVersionId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobResults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResults';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/jobs/{jobId}/results","GET",{viewId:e,journeyViewVersion:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobResultsChart(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResultsChart';if(void 0===n||null===n)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionJobResultsChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}/results/charts/{chartId}","GET",{viewId:e,journeyVersionId:i,jobId:t,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobsLatest(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobsLatest';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/latest","GET",{viewId:e,journeyVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViews(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,nameOrCreatedBy:e.nameOrCreatedBy,expand:e.expand,id:e.id},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsEventdefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "eventDefinitionId" when calling getJourneyViewsEventdefinition';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsEventdefinitions(){return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActionmap(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActiontarget(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActiontemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyOutcome(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneySegment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyViewVersionJob(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling patchJourneyViewVersionJob';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","PATCH",{viewId:e,journeyVersionId:i,jobId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActionmapsEstimatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postJourneyActionmapsEstimatesJobs';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentActionevent(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentAppevents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentAppevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/appevents","POST",{deploymentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentWebevents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentWebevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/webevents","POST",{deploymentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyFlowsPathsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/flows/paths/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomesAttributionsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomesPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewSchedules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewVersionJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling postJourneyViewVersionJobs';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs","POST",{viewId:e,journeyVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewVersions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViews(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postJourneyViews';return this.apiClient.callApi("/api/v2/journey/views","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewsEncodingsValidate(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/encodings/validate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putJourneyViewSchedules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putJourneyViewVersion(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","PUT",{viewId:e,versionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class H{constructor(e){this.apiClient=e||w.instance}deleteKnowledgeKnowledgebase(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","DELETE",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","DELETE",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling deleteKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","DELETE",{knowledgeBaseId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling deleteKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","DELETE",{knowledgeBaseId:e,importJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","DELETE",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","DELETE",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","DELETE",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","DELETE",{knowledgeBaseId:e,syncJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionCategories';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/categories","GET",{sessionId:e},{before:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeGuestSessionDocument';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}","GET",{sessionId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocuments';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents","GET",{sessionId:e},{categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeIntegrationOptions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';return this.apiClient.callApi("/api/v2/knowledge/integrations/{integrationId}/options","GET",{integrationId:e},{knowledgeBaseIds:this.apiClient.buildCollectionParam(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebase(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocument(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi"),state:t.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,onlyCommented:t.onlyCommented,documentVersionId:t.documentVersionId,documentVariationId:t.documentVariationId,appType:t.appType,queryType:t.queryType,userId:t.userId,queueId:t.queueId,state:t.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===t||null===t)throw'Missing the required parameter "feedbackId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","GET",{knowledgeBaseId:e,documentId:i,feedbackId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVariation(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","GET",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVariations(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,documentState:t.documentState,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersion';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}","GET",{knowledgeBaseId:e,documentId:i,versionId:t},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===n||null===n)throw'Missing the required parameter "variationId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations/{variationId}","GET",{knowledgeBaseId:e,documentId:i,versionId:t,variationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations","GET",{knowledgeBaseId:e,documentId:i,versionId:t},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling getKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","GET",{knowledgeBaseId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseImportJob(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling getKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","GET",{knowledgeBaseId:e,importJobId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageCategories(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategories';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,name:t.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","GET",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","GET",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocumentUpload(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===n||null===n)throw'Missing the required parameter "uploadId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads/{uploadId}","GET",{documentId:e,knowledgeBaseId:i,languageCode:t,uploadId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,categories:t.categories,title:t.title,sortBy:t.sortBy,sortOrder:t.sortOrder,documentIds:this.apiClient.buildCollectionParam(t.documentIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","GET",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageTraining(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTraining';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTraining';if(void 0===t||null===t)throw'Missing the required parameter "trainingId" when calling getKnowledgeKnowledgebaseLanguageTraining';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}","GET",{knowledgeBaseId:e,languageCode:i,trainingId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageTrainings(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTrainings';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTrainings';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,knowledgeDocumentsState:t.knowledgeDocumentsState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseOperationsUsersQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperationsUsersQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations/users/query","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseParseJob(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling getKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","GET",{knowledgeBaseId:e,parseJobId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSources';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources","GET",{knowledgeBaseId:e},{type:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","GET",{knowledgeBaseId:e,sourceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","GET",{knowledgeBaseId:e,sourceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSynchronizeJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling getKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","GET",{knowledgeBaseId:e,syncJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}","GET",{knowledgeBaseId:e,groupId:i},{app:t.app,dateStart:t.dateStart,dateEnd:t.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===t||null===t)throw'Missing the required parameter "phraseGroupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","GET",{knowledgeBaseId:e,groupId:i,phraseGroupId:t},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroups';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups","GET",{knowledgeBaseId:e},{app:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebases(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/knowledgebases","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name,coreLanguage:e.coreLanguage,published:e.published,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(void 0===i||null===i)throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}","PATCH",{sessionId:e,searchId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebase(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","PATCH",{knowledgeBaseId:e,categoryId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","PATCH",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===t||null===t)throw'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","PATCH",{knowledgeBaseId:e,documentId:i,feedbackId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentVariation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","PATCH",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(void 0===i||null===i)throw'Missing the required parameter "searchId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/{searchId}","PATCH",{knowledgeBaseId:e,searchId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseImportJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","PATCH",{knowledgeBaseId:e,importJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLabel(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","PATCH",{knowledgeBaseId:e,labelId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageCategory(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","PATCH",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocument(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","PATCH",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocuments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","PATCH",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","PATCH",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseParseJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","PATCH",{knowledgeBaseId:e,parseJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","PATCH",{knowledgeBaseId:e,syncJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===t||null===t)throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","PATCH",{knowledgeBaseId:e,groupId:i,phraseGroupId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeDocumentuploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentCopies(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/copies","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentViews(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsAnswers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/presentations","POST",{sessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search","POST",{sessionId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions","POST",{sessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseCategories(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentCopies(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/copies","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentVariations(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentVersions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentViews(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/views","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocuments(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsAnswers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/remove","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/update","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/suggestions","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/versions/bulk/add","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseExportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseImportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLabels(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageCategories(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageCategories';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageCategories';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocumentUploads(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads","POST",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocuments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocumentsImports(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageTrainingPromote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';if(void 0===t||null===t)throw'Missing the required parameter "trainingId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}/promote","POST",{knowledgeBaseId:e,languageCode:i,trainingId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageTrainings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainings';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainings';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseParseJobImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}/import","POST",{knowledgeBaseId:e,parseJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseParseJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesSalesforce(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesServicenow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSynchronizeJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebases(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class ${constructor(e){this.apiClient=e||w.instance}deleteLanguageunderstandingDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingDomainVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingMiner(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","DELETE",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingMinerDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","GET",{domainId:e},{intentName:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(t.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:t.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersionReport(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersionReport';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/report","GET",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","GET",{domainId:e},{includeUtterances:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/domains","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMiner(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerDraft(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:t.draftIntentId,draftTopicId:t.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerDrafts(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerIntent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(void 0===i||null===i)throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntents';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents","GET",{minerId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopic(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(void 0===i||null===i)throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopicPhrase(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(void 0===i||null===i)throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(void 0===t||null===t)throw'Missing the required parameter "phraseId" when calling getLanguageunderstandingMinerTopicPhrase';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}/phrases/{phraseId}","GET",{minerId:e,topicId:i,phraseId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopics(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopics';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMiners(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/miners","GET",{},{minerType:e.minerType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingSettings(){return this.apiClient.callApi("/api/v2/languageunderstanding/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLanguageunderstandingDomain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchLanguageunderstandingMinerDraft(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainFeedback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionDetect(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersionDetect';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/detect","POST",{domainId:e,domainVersionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionPublish(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionPublish';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/publish","POST",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionTrain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionTrain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/train","POST",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:t.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomains';return this.apiClient.callApi("/api/v2/languageunderstanding/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerDrafts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerExecute';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/execute","POST",{minerId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMiners(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguageunderstandingMiners';return this.apiClient.callApi("/api/v2/languageunderstanding/miners","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putLanguageunderstandingDomainVersion(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","PUT",{domainId:e,domainVersionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class Z{constructor(e){this.apiClient=e||w.instance}deleteLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling deleteLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslations(){return this.apiClient.callApi("/api/v2/languages/translations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsBuiltin(e){if(void 0===e||null===e)throw'Missing the required parameter "language" when calling getLanguagesTranslationsBuiltin';return this.apiClient.callApi("/api/v2/languages/translations/builtin","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsOrganization(e){if(void 0===e||null===e)throw'Missing the required parameter "language" when calling getLanguagesTranslationsOrganization';return this.apiClient.callApi("/api/v2/languages/translations/organization","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getLanguagesTranslationsUser';return this.apiClient.callApi("/api/v2/languages/translations/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguages';return this.apiClient.callApi("/api/v2/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class X{constructor(e){this.apiClient=e||w.instance}deleteLearningAssignment(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling deleteLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","DELETE",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLearningModule(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling deleteLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","DELETE",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling getLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","GET",{assignmentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignmentStep(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(void 0===i||null===i)throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:t.shareableContentObjectId,defaultShareableContentObject:t.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,userId:this.apiClient.buildCollectionParam(e.userId,"multi"),types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","GET",{moduleId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulePreview(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleRule(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulesAssignments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userIds" when calling getLearningModulesAssignments';return this.apiClient.callApi("/api/v2/learning/modules/assignments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulesCoverartCoverArtId(e){if(void 0===e||null===e)throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';return this.apiClient.callApi("/api/v2/learning/modules/coverart/{coverArtId}","GET",{coverArtId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningScormScormId(e){if(void 0===e||null===e)throw'Missing the required parameter "scormId" when calling getLearningScormScormId';return this.apiClient.callApi("/api/v2/learning/scorm/{scormId}","GET",{scormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignmentReschedule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reschedule","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignmentStep(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(void 0===i||null===i)throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningModuleUserAssignments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchLearningModuleUserAssignments';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/users/{userId}/assignments","PATCH",{moduleId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssessmentsScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningAssessmentsScoring';return this.apiClient.callApi("/api/v2/learning/assessments/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentReassign(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reassign","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentReset(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reset","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningAssignmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/learning/assignments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsBulkadd(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkadd","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsBulkremove(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkremove","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModuleJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModulePublish(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling postLearningModulePublish';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/publish","POST",{moduleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningModules';return this.apiClient.callApi("/api/v2/learning/modules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningRulesQuery(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(void 0===i||null===i)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningScheduleslotsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';return this.apiClient.callApi("/api/v2/learning/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningScorm(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/scorm","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModulePreview(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModuleRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Y{constructor(e){this.apiClient=e||w.instance}getLicenseDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "licenseId" when calling getLicenseDefinition';return this.apiClient.callApi("/api/v2/license/definitions/{licenseId}","GET",{licenseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseDefinitions(){return this.apiClient.callApi("/api/v2/license/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseToggle(e){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling getLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","GET",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getLicenseUser';return this.apiClient.callApi("/api/v2/license/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseInfer(e){return e=e||{},this.apiClient.callApi("/api/v2/license/infer","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseOrganization(e){return e=e||{},this.apiClient.callApi("/api/v2/license/organization","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseToggle(e){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling postLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","POST",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class ee{constructor(e){this.apiClient=e||w.instance}deleteLocation(e){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling deleteLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","DELETE",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocation(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "locationId" when calling getLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","GET",{locationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationSublocations(e){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling getLocationSublocations';return this.apiClient.callApi("/api/v2/locations/{locationId}/sublocations","GET",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocations(e){return e=e||{},this.apiClient.callApi("/api/v2/locations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling patchLocation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLocations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocations';return this.apiClient.callApi("/api/v2/locations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLocationsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ie{constructor(e){this.apiClient=e||w.instance}deleteDiagnosticsLogcaptureBrowserUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getDiagnosticsLogcaptureBrowserEntriesDownloadJob';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users","GET",{},{includeExpired:e.includeExpired},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserEntriesDownloadJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserEntriesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/query","POST",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","POST",{userId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class te{constructor(e){this.apiClient=e||w.instance}deleteMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling deleteMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling deleteMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling getMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling getMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchMessagingSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchMessagingSupportedcontentSupportedContentId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postMessagingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMessagingSettings';return this.apiClient.callApi("/api/v2/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postMessagingSupportedcontent(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putMessagingSettingsDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ne{constructor(e){this.apiClient=e||w.instance}deleteMobiledevice(e){if(void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling deleteMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","DELETE",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMobiledevice(e){if(void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling getMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","GET",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMobiledevices(e){return e=e||{},this.apiClient.callApi("/api/v2/mobiledevices","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postMobiledevices(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMobiledevices';return this.apiClient.callApi("/api/v2/mobiledevices","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putMobiledevice(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class ae{constructor(e){this.apiClient=e||w.instance}deleteNotificationsChannelSubscriptions(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling deleteNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","DELETE",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsAvailabletopics(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/availabletopics","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includePreview:e.includePreview},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsChannelSubscriptions(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling getNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","GET",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsChannels(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/channels","GET",{},{includechannels:e.includechannels},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}headNotificationsChannel(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling headNotificationsChannel';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}","HEAD",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postNotificationsChannelSubscriptions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:t.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postNotificationsChannels(){return this.apiClient.callApi("/api/v2/notifications/channels","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putNotificationsChannelSubscriptions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:t.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class oe{constructor(e){this.apiClient=e||w.instance}deleteOauthClient(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling deleteOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","DELETE",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthAuthorization(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthAuthorization';return this.apiClient.callApi("/api/v2/oauth/authorizations/{clientId}","GET",{clientId:e},{},{"Accept-Language":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthAuthorizations(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/authorizations","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClient(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","GET",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageQueryResult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageSummary(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClients(){return this.apiClient.callApi("/api/v2/oauth/clients","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthScope(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scopeId" when calling getOauthScope';return this.apiClient.callApi("/api/v2/oauth/scopes/{scopeId}","GET",{scopeId:e},{},{"Accept-Language":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthScopes(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/scopes","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientSecret(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientSecret';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/secret","POST",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientUsageQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClients(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOauthClients';return this.apiClient.callApi("/api/v2/oauth/clients","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOauthClient(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling putOauthClient';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class re{constructor(e){this.apiClient=e||w.instance}deleteAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsHome(){return this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsLimit(){return this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionObject(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionRestore(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationDivision(e,i){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class le{constructor(e){this.apiClient=e||w.instance}getUsageEventsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';return this.apiClient.callApi("/api/v2/usage/events/definitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageEventsDefinitions(){return this.apiClient.callApi("/api/v2/usage/events/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageEventsAggregatesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/aggregates/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageEventsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/query","POST",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class se{constructor(e){this.apiClient=e||w.instance}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsAuthenticationSettings(){return this.apiClient.callApi("/api/v2/organizations/authentication/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsEmbeddedintegration(){return this.apiClient.callApi("/api/v2/organizations/embeddedintegration","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsIpaddressauthentication(){return this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsChangerequest(e){if(void 0===e||null===e)throw'Missing the required parameter "requestId" when calling getOrganizationsLimitsChangerequest';return this.apiClient.callApi("/api/v2/organizations/limits/changerequests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsChangerequests(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/changerequests","GET",{},{after:e.after,before:e.before,status:e.status,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsDocs(){return this.apiClient.callApi("/api/v2/organizations/limits/docs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsDocsFreetrial(){return this.apiClient.callApi("/api/v2/organizations/limits/docs/freetrial","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespace(e){if(void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespace';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceCounts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceCounts';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/counts","GET",{namespaceName:e},{cursor:i.cursor,entityId:i.entityId,userId:i.userId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceDefaults';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/defaults","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceLimitCounts(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceLimitCounts';if(void 0===i||null===i)throw'Missing the required parameter "limitName" when calling getOrganizationsLimitsNamespaceLimitCounts';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/limits/{limitName}/counts","GET",{namespaceName:e,limitName:i},{entityId:t.entityId,userId:t.userId,cursor:t.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaces(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/namespaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsMe(){return this.apiClient.callApi("/api/v2/organizations/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsWhitelist(){return this.apiClient.callApi("/api/v2/organizations/whitelist","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchOrganizationsAuthenticationSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchOrganizationsAuthenticationSettings';return this.apiClient.callApi("/api/v2/organizations/authentication/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchOrganizationsFeature(e,i){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(void 0===i||null===i)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsEmbeddedintegration(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsEmbeddedintegration';return this.apiClient.callApi("/api/v2/organizations/embeddedintegration","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsIpaddressauthentication(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsIpaddressauthentication';return this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/me","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsWhitelist(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';return this.apiClient.callApi("/api/v2/organizations/whitelist","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class pe{constructor(e){this.apiClient=e||w.instance}deleteOrgauthorizationTrustee(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","DELETE",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeGroupRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustees(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","DELETE",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustors(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustors';return this.apiClient.callApi("/api/v2/orgauthorization/trustors","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationPairing(e){if(void 0===e||null===e)throw'Missing the required parameter "pairingId" when calling getOrgauthorizationPairing';return this.apiClient.callApi("/api/v2/orgauthorization/pairings/{pairingId}","GET",{pairingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustee(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeClonedusers(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroupRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","GET",{trusteeOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","GET",{trusteeOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustees(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteesCare(){return this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteesDefault(){return this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorClonedusers(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups","GET",{trustorOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users","GET",{trustorOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustors(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustors","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationPairings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationPairings';return this.apiClient.callApi("/api/v2/orgauthorization/pairings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteeGroups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteeUsers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrustees(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesCare(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire,assignFullAccess:e.assignFullAccess,allowTrustedUserAccess:e.allowTrustedUserAccess},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrustorAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustee(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeGroupRoledivisions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roledivisions","PUT",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeGroupRoles(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","PUT",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeUserRoledivisions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roledivisions","PUT",{trusteeOrgId:e,trusteeUserId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeUserRoles(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","PUT",{trusteeOrgId:e,trusteeUserId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class ue{constructor(e){this.apiClient=e||w.instance}deleteOutboundAttemptlimit(e){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling deleteOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","DELETE",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCallabletimeset(e){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling deleteOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","DELETE",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCallanalysisresponseset(e){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling deleteOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","DELETE",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaignrule(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling deleteOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","DELETE",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlist(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","DELETE",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistContacts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(void 0===i||null===i)throw'Missing the required parameter "contactIds" when calling deleteOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","DELETE",{contactListId:e},{contactIds:this.apiClient.buildCollectionParam(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistfilter(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling deleteOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","DELETE",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlists(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlisttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling deleteOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","DELETE",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlisttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDigitalruleset(e){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling deleteOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","DELETE",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclist(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","DELETE",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundFilespecificationtemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling deleteOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","DELETE",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundFilespecificationtemplatesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundFilespecificationtemplatesBulk';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/bulk","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundImporttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling deleteOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","DELETE",{importTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundImporttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundMessagingcampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundRuleset(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling deleteOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","DELETE",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesEmailcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling deleteOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","DELETE",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling deleteOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling deleteOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundAttemptlimit(e){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling getOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","GET",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundAttemptlimits(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/attemptlimits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallabletimeset(e){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling getOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","GET",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallabletimesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callabletimesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallanalysisresponseset(e){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling getOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","GET",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallanalysisresponsesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignAgentownedmappingpreviewResults(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignAgentownedmappingpreviewResults';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview/results","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignDiagnostics(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/diagnostics","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignInteractions(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignInteractions';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/interactions","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignLinedistribution(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignLinedistribution';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/linedistribution","GET",{campaignId:e},{includeOnlyActiveCampaigns:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignSkillcombinations';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/skillcombinations","GET",{campaignId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignStats(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignStats';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stats","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignrule(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling getOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","GET",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignrules(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaignrules","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),contactListId:e.contactListId,dncListIds:e.dncListIds,distributionQueueId:e.distributionQueueId,edgeGroupId:e.edgeGroupId,callAnalysisResponseSetId:e.callAnalysisResponseSetId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsAllDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlist(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","GET",{contactListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContactsBulkJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getOutboundContactlistContactsBulkJob';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs/{jobId}","GET",{contactListId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContactsBulkJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJobs';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","GET",{contactListId:e},{download:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistImportstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistImportstatus';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/importstatus","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistTimezonemappingpreview(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistTimezonemappingpreview';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/timezonemappingpreview","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistfilter(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling getOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","GET",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistsDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews/{contactListId}","GET",{contactListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlisttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling getOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","GET",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDigitalruleset(e){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling getOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","GET",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDigitalrulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/digitalrulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclist(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","GET",{dncListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","GET",{dncListId:e},{download:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistImportstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistImportstatus';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/importstatus","GET",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistsDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews/{dncListId}","GET",{dncListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundEvent(e){if(void 0===e||null===e)throw'Missing the required parameter "eventId" when calling getOutboundEvent';return this.apiClient.callApi("/api/v2/outbound/events/{eventId}","GET",{eventId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundEvents(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/events","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,category:e.category,level:e.level,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundFilespecificationtemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling getOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","GET",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundFilespecificationtemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","GET",{importTemplateId:e},{includeImportStatus:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplateImportstatus';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}/importstatus","GET",{importTemplateId:e},{listNamePrefix:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/importtemplates","GET",{},{includeImportStatus:e.includeImportStatus,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListTemplateId:e.contactListTemplateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignDiagnostics(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/diagnostics","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,contactListId:e.contactListId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),type:e.type,senderSmsPhoneNumber:e.senderSmsPhoneNumber,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignsDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,type:e.type,id:this.apiClient.buildCollectionParam(e.id,"multi"),senderSmsPhoneNumber:e.senderSmsPhoneNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundRuleset(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling getOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","GET",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundRulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/rulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesCampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesEmailcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling getOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","GET",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesEmailcampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesMessagingcampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling getOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesSequences(){return this.apiClient.callApi("/api/v2/outbound/schedules/sequences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling getOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSequences(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/sequences","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSettings(){return this.apiClient.callApi("/api/v2/outbound/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundWrapupcodemappings(){return this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistCustomexclusioncolumns(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistEmailaddresses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistPhonenumbers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundAttemptlimits(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundAttemptlimits';return this.apiClient.callApi("/api/v2/outbound/attemptlimits","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCallabletimesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCallabletimesets';return this.apiClient.callApi("/api/v2/outbound/callabletimesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCallanalysisresponsesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCallanalysisresponsesets';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignAgentownedmappingpreview(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignAgentownedmappingpreview';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignCallbackSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignStart(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStart';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/start","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignStop(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStop';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stop","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignrules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaignrules';return this.apiClient.callApi("/api/v2/outbound/campaignrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaigns(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignsProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistClear(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistClear';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/clear","POST",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContacts(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:t.priority,clearSystemData:t.clearSystemData,doNotQueue:t.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulkRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkRemove';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulkUpdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkUpdate';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/update","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsSearch(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","POST",{contactListId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfilters(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfilters';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfiltersBulkRetrieve(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfiltersPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersPreview';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlists(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplatesBulkAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplatesBulkRetrieve(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundConversationDnc(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postOutboundConversationDnc';return this.apiClient.callApi("/api/v2/outbound/conversations/{conversationId}/dnc","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDigitalrulesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundDigitalrulesets';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistEmailaddresses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistExport(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","POST",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistPhonenumbers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:t.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclists(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundDnclists';return this.apiClient.callApi("/api/v2/outbound/dnclists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundFilespecificationtemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundFilespecificationtemplates';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundImporttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundImporttemplatesBulkAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundImporttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/importtemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignStart(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStart';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/start","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignStop(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStop';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/stop","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaigns(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaigns';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignsProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundRulesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundRulesets';return this.apiClient.callApi("/api/v2/outbound/rulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundSequences(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundSequences';return this.apiClient.callApi("/api/v2/outbound/sequences","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundAttemptlimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCallabletimeset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCallanalysisresponseset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaignAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOutboundCampaignAgent';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agents/{userId}","PUT",{campaignId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaignrule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlist(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlistContact(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","PUT",{contactListId:e,contactId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlistfilter(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlisttemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundDigitalruleset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundDnclist(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundFilespecificationtemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundImporttemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundMessagingcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundRuleset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesEmailcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesMessagingcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesSequence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSequence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundWrapupcodemappings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';return this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class de{constructor(e){this.apiClient=e||w.instance}deletePresenceDefinition0(e){if(void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","DELETE",{definitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deletePresenceSource(e){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling deletePresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","DELETE",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deletePresencedefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling deletePresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","DELETE",{presenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceDefinition0(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling getPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","GET",{definitionId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceDefinitions0(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/definitions","GET",{},{deactivated:e.deactivated,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSettings(){return this.apiClient.callApi("/api/v2/presence/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSource(e){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling getPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","GET",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSources(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/sources","GET",{},{deactivated:e.deactivated},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceUserPrimarysource(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresencedefinition(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresencedefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/presencedefinitions","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,deleted:e.deleted,localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSystempresences(){return this.apiClient.callApi("/api/v2/systempresences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserPresence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserPresence';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserPresencesPurecloud(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersPresenceBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling getUsersPresenceBulk';return this.apiClient.callApi("/api/v2/users/presences/{sourceId}/bulk","GET",{sourceId:e},{id:this.apiClient.buildCollectionParam(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersPresencesPurecloudBulk(e){return e=e||{},this.apiClient.callApi("/api/v2/users/presences/purecloud/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserPresence(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserPresence';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserPresencesPurecloud(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postPresenceDefinitions0(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresenceDefinitions0';return this.apiClient.callApi("/api/v2/presence/definitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postPresenceSources(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresenceSources';return this.apiClient.callApi("/api/v2/presence/sources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postPresencedefinitions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresencedefinitions';return this.apiClient.callApi("/api/v2/presencedefinitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceDefinition0(e,i){if(void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putPresenceSettings';return this.apiClient.callApi("/api/v2/presence/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceSource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceUserPrimarysource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresencedefinition(e,i){if(void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersPresencesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putUsersPresencesBulk';return this.apiClient.callApi("/api/v2/users/presences/bulk","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ce{constructor(e){this.apiClient=e||w.instance}deleteProcessautomationTrigger(e){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","DELETE",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTrigger(e){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling getProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","GET",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTriggers(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,topicName:e.topicName,enabled:e.enabled,hasDelayBy:e.hasDelayBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTriggersTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers/topics","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggerTest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling postProcessautomationTriggerTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}/test","POST",{triggerId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postProcessautomationTriggers';return this.apiClient.callApi("/api/v2/processautomation/triggers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicName" when calling postProcessautomationTriggersTopicTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/topics/{topicName}/test","POST",{topicName:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putProcessautomationTrigger(e,i){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class ge{constructor(e){this.apiClient=e||w.instance}deleteQualityCalibration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(void 0===i||null===i)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityConversationEvaluation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityForm(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityFormsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityFormsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityAgentsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/agents/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,agentUserId:this.apiClient.buildCollectionParam(e.agentUserId,"multi"),evaluatorUserId:e.evaluatorUserId,name:e.name,group:e.group,agentTeamId:e.agentTeamId,formContextId:e.formContextId,userState:e.userState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityCalibration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling getQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","GET",{calibrationId:e},{calibratorId:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityCalibrations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationEvaluation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getQualityConversationSurveys';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/surveys","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationsAuditsQueryTransactionId(e){if(void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityEvaluationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluations/query","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),previousPage:e.previousPage,conversationId:e.conversationId,agentUserId:e.agentUserId,agentTeamId:e.agentTeamId,evaluatorUserId:e.evaluatorUserId,assigneeUserId:e.assigneeUserId,queueId:e.queueId,startTime:e.startTime,endTime:e.endTime,formContextId:e.formContextId,evaluationState:this.apiClient.buildCollectionParam(e.evaluationState,"multi"),isReleased:e.isReleased,agentHasRead:e.agentHasRead,expandAnswerTotalScores:e.expandAnswerTotalScores,maximum:e.maximum,sortOrder:e.sortOrder,includeDeletedUsers:e.includeDeletedUsers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityEvaluatorsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluators/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),group:e.group,agentTeamId:e.agentTeamId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityForm(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormVersions';return this.apiClient.callApi("/api/v2/quality/forms/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityForms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluationVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsEvaluationVersions';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluationsBulkContexts(e){if(void 0===e||null===e)throw'Missing the required parameter "contextId" when calling getQualityFormsEvaluationsBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveyVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsSurveyVersions';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveysBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling getQualityFormsSurveysBulk';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contextId" when calling getQualityFormsSurveysBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi"),published:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedform(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedform';return this.apiClient.callApi("/api/v2/quality/publishedforms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedforms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedformsEvaluation';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedformsSurvey';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualitySurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "surveyId" when calling getQualitySurvey';return this.apiClient.callApi("/api/v2/quality/surveys/{surveyId}","GET",{surveyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualitySurveysScorable(e){if(void 0===e||null===e)throw'Missing the required parameter "customerSurveyUrl" when calling getQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","GET",{},{customerSurveyUrl:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchQualityFormsSurvey(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityCalibrations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityConversationEvaluations(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityConversationsAuditsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityConversationsAuditsQuery';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityEvaluationsAggregatesQueryMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityEvaluationsAggregatesQueryMe';return this.apiClient.callApi("/api/v2/quality/evaluations/aggregates/query/me","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityEvaluationsScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityEvaluationsScoring';return this.apiClient.callApi("/api/v2/quality/evaluations/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityForms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityForms';return this.apiClient.callApi("/api/v2/quality/forms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityFormsEvaluations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityFormsEvaluations';return this.apiClient.callApi("/api/v2/quality/forms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityFormsSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityFormsSurveys';return this.apiClient.callApi("/api/v2/quality/forms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedforms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedforms';return this.apiClient.callApi("/api/v2/quality/publishedforms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedformsEvaluations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedformsEvaluations';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedformsSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedformsSurveys';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualitySurveysScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualitySurveysScoring';return this.apiClient.callApi("/api/v2/quality/surveys/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityCalibration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityConversationEvaluation(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","PUT",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityForm(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityForm';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsEvaluation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsEvaluationAiscoringSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsEvaluationAiscoringSettings';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/aiscoring/settings","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsSurvey(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualitySurveysScorable(e,i){if(void 0===e||null===e)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class he{constructor(e){this.apiClient=e||w.instance}deleteConversationRecordingAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling deleteConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","DELETE",{conversationId:e,recordingId:i,annotationId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrphanrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling deleteOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","DELETE",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingCrossplatformMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "ids" when calling deleteRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingCrossplatformMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling deleteRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "ids" when calling deleteRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling deleteRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecording(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{formatId:t.formatId,emailFormatId:t.emailFormatId,chatFormatId:t.chatFormatId,messageFormatId:t.messageFormatId,download:t.download,fileName:t.fileName,locale:t.locale,mediaFormats:this.apiClient.buildCollectionParam(t.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling getConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","GET",{conversationId:e,recordingId:i,annotationId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingAnnotations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingmetadata(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadata';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingmetadataRecordingId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordings';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings","GET",{conversationId:e},{maxWaitMs:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling getOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","GET",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecordingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling getOrphanrecordingMedia';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}/media","GET",{orphanId:e},{formatId:i.formatId,emailFormatId:i.emailFormatId,chatFormatId:i.chatFormatId,messageFormatId:i.messageFormatId,download:i.download,fileName:i.fileName,locale:i.locale,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/orphanrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,hasConversation:e.hasConversation,media:e.media},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingBatchrequest(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingBatchrequest';return this.apiClient.callApi("/api/v2/recording/batchrequests/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingCrossplatformMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingCrossplatformMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling getRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJobFailedrecordings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingJobFailedrecordings';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}/failedrecordings","GET",{jobId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/jobs","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,state:e.state,showOnlyMyJobs:e.showOnlyMyJobs,jobType:e.jobType,includeTotal:e.includeTotal,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingKeyconfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "keyConfigurationId" when calling getRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","GET",{keyConfigurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingKeyconfigurations(){return this.apiClient.callApi("/api/v2/recording/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling getRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingRecordingkeys(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/recordingkeys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingRecordingkeysRotationschedule(){return this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/settings","GET",{},{createDefault:e.createDefault},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingUploadsReport(e){if(void 0===e||null===e)throw'Missing the required parameter "reportId" when calling getRecordingUploadsReport';return this.apiClient.callApi("/api/v2/recording/uploads/reports/{reportId}","GET",{reportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsRetentionQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsScreensessions(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/screensessions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsScreensessionsDetails(){return this.apiClient.callApi("/api/v2/recordings/screensessions/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingCrossplatformMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingsScreensession(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingSessionId" when calling patchRecordingsScreensession';return this.apiClient.callApi("/api/v2/recordings/screensessions/{recordingSessionId}","PATCH",{recordingSessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationRecordingAnnotations(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","POST",{conversationId:e,recordingId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingBatchrequests(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingBatchrequests';return this.apiClient.callApi("/api/v2/recording/batchrequests","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingCrossplatformMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingJobs';return this.apiClient.callApi("/api/v2/recording/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingKeyconfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurations';return this.apiClient.callApi("/api/v2/recording/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingKeyconfigurationsValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingLocalkeys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingLocalkeys';return this.apiClient.callApi("/api/v2/recording/localkeys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingRecordingkeys(){return this.apiClient.callApi("/api/v2/recording/recordingkeys","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingUploadsReports(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingUploadsReports';return this.apiClient.callApi("/api/v2/recording/uploads/reports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsDeletionprotection(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsDeletionprotection';return this.apiClient.callApi("/api/v2/recordings/deletionprotection","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsScreensessionsAcknowledge(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsAcknowledge';return this.apiClient.callApi("/api/v2/recordings/screensessions/acknowledge","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsScreensessionsMetadata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsMetadata';return this.apiClient.callApi("/api/v2/recordings/screensessions/metadata","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationRecording(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:n.clearExport},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationRecordingAnnotation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling putConversationRecordingAnnotation';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling putConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","PUT",{conversationId:e,recordingId:i,annotationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}putOrphanrecording(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingCrossplatformMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling putRecordingJob';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingKeyconfiguration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingRecordingkeysRotationschedule(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRecordingRecordingkeysRotationschedule';return this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRecordingSettings';return this.apiClient.callApi("/api/v2/recording/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingsDeletionprotection(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/deletionprotection","PUT",{},{protect:e.protect},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class me{constructor(e){this.apiClient=e||w.instance}deleteResponsemanagementLibrary(e){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling deleteResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","DELETE",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteResponsemanagementResponse(e){if(void 0===e||null===e)throw'Missing the required parameter "responseId" when calling deleteResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","DELETE",{responseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteResponsemanagementResponseasset(e){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling deleteResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","DELETE",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementLibrary(e){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling getResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","GET",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponse(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "responseId" when calling getResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","GET",{responseId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponseasset(e){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling getResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","GET",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponseassetsStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling getResponsemanagementResponseassetsStatusStatusId';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementLibraries(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementLibraries';return this.apiClient.callApi("/api/v2/responsemanagement/libraries","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementLibrariesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesBulk';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsSearch';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/search","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponseassetsUploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsUploads';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponsesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponsesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/responses/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementLibrary(e,i){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementResponse(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementResponseasset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class we{constructor(e){this.apiClient=e||w.instance}deleteRoutingAssessment(e){if(void 0===e||null===e)throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","DELETE",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailDomainRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling deleteRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","DELETE",{domainName:e,routeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailOutboundDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling deleteRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling deleteRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueue(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","DELETE",{queueId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueWrapupcode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(void 0===i||null===i)throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSettings(){return this.apiClient.callApi("/api/v2/routing/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSkill(e){if(void 0===e||null===e)throw'Missing the required parameter "skillId" when calling deleteRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","DELETE",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSkillgroup(e){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling deleteRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","DELETE",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSmsAddress(e){if(void 0===e||null===e)throw'Missing the required parameter "addressId" when calling deleteRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","DELETE",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSmsPhonenumber(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling deleteRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","DELETE",{phoneNumberId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilization(){return this.apiClient.callApi("/api/v2/routing/utilization","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilizationLabel(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "labelId" when calling deleteRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","DELETE",{labelId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilizationTag(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingWrapupcode(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling deleteRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","DELETE",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutinglanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutingskill(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessment(e){if(void 0===e||null===e)throw'Missing the required parameter "assessmentId" when calling getRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","GET",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessmentsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRoutingAssessmentsJob';return this.apiClient.callApi("/api/v2/routing/assessments/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAvailablemediatypes(){return this.apiClient.callApi("/api/v2/routing/availablemediatypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomainRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","GET",{domainName:e,routeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomainRoutes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","GET",{domainName:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,excludeStatus:e.excludeStatus,filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomainActivation(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomainSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainSearch';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/search","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailSetup(){return this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingMessageRecipient(e){if(void 0===e||null===e)throw'Missing the required parameter "recipientId" when calling getRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","GET",{recipientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingMessageRecipients(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/message/recipients","GET",{},{messengerType:e.messengerType,name:e.name,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorModelFeatures(e,i){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(void 0===i||null===i)throw'Missing the required parameter "modelId" when calling getRoutingPredictorModelFeatures';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models/{modelId}/features","GET",{predictorId:e,modelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorModels(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModels';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorsKeyperformanceindicators(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators","GET",{},{kpiGroup:e.kpiGroup,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueue(e){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueAssistant(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueAssistant';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/assistant","GET",{queueId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueComparisonperiod(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(void 0===i||null===i)throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueComparisonperiods(e){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiods';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/estimatedwaittime","GET",{queueId:e},{conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueMediatypeEstimatedwaittime(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(void 0===i||null===i)throw'Missing the required parameter "mediaType" when calling getRoutingQueueMediatypeEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime","GET",{queueId:e,mediaType:i},{labelId:t.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","GET",{queueId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","GET",{queueId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueWrapupcodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","GET",{queueId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),peerId:this.apiClient.buildCollectionParam(e.peerId,"multi"),cannedResponseLibraryId:e.cannedResponseLibraryId,hasPeer:e.hasPeer},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,joined:e.joined,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettings(){return this.apiClient.callApi("/api/v2/routing/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettingsContactcenter(){return this.apiClient.callApi("/api/v2/routing/settings/contactcenter","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettingsTranscription(){return this.apiClient.callApi("/api/v2/routing/settings/transcription","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkill(e){if(void 0===e||null===e)throw'Missing the required parameter "skillId" when calling getRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","GET",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroup(e){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","GET",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroupMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembers';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members","GET",{skillGroupId:e},{pageSize:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","GET",{skillGroupId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroups(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillgroups","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkills(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skills","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAddress(e){if(void 0===e||null===e)throw'Missing the required parameter "addressId" when calling getRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","GET",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAddresses(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/addresses","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAvailablephonenumbers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:t.region,city:t.city,areaCode:t.areaCode,phoneNumberType:i,pattern:t.pattern,addressRequirement:t.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsPhonenumber(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling getRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","GET",{phoneNumberId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsPhonenumbers(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","GET",{},{phoneNumber:e.phoneNumber,phoneNumberType:this.apiClient.buildCollectionParam(e.phoneNumberType,"multi"),phoneNumberStatus:this.apiClient.buildCollectionParam(e.phoneNumberStatus,"multi"),countryCode:this.apiClient.buildCollectionParam(e.countryCode,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,language:e.language,"integration.id":e.integrationId,"supportedContent.id":e.supportedContentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilization(){return this.apiClient.callApi("/api/v2/routing/utilization","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabel(e){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabelAgents(e){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabelAgents';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}/agents","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTag(e){if(void 0===e||null===e)throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTagAgents(e){if(void 0===e||null===e)throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcode(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling getRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodes(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodesDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling getRoutingWrapupcodesDivisionview';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeState:e.includeState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutinglanguages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingskills(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSkillgroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingConversation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingEmailDomain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingEmailDomainValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingPredictor(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueMember(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","PATCH",{queueId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueUser(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","PATCH",{queueId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueUsers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSettingsContactcenter(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchRoutingSettingsContactcenter';return this.apiClient.callApi("/api/v2/routing/settings/contactcenter","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSettingsTranscription(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSkillgroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchUserQueue';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchUserQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(t.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguagesBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsQueuesObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomainRoutes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainTestconnection';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/testconnection","POST",{domainId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailDomains';return this.apiClient.callApi("/api/v2/routing/email/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailOutboundDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomains';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailOutboundDomainsSimulated(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomainsSimulated';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/simulated","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingLanguages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingLanguages';return this.apiClient.callApi("/api/v2/routing/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueMembers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:t._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueUsers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:t._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueues(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingQueues';return this.apiClient.callApi("/api/v2/routing/queues","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling postRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","POST",{skillGroupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkillgroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSkillgroups';return this.apiClient.callApi("/api/v2/routing/skillgroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkills(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSkills';return this.apiClient.callApi("/api/v2/routing/skills","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsAddresses(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsAddresses';return this.apiClient.callApi("/api/v2/routing/sms/addresses","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbersAlphanumeric(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersAlphanumeric';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/alphanumeric","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbersImport(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersImport';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/import","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingUtilizationLabels(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingUtilizationLabels';return this.apiClient.callApi("/api/v2/routing/utilization/labels","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingUtilizationTags(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingWrapupcodes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingWrapupcodes';return this.apiClient.callApi("/api/v2/routing/wrapupcodes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutinglanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutingskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingDirectroutingbackupSettingsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingEmailDomainRoute(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","PUT",{domainName:e,routeId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingEmailOutboundDomainActivation(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling putRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","PUT",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingMessageRecipient(e,i){if(void 0===e||null===e)throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingQueue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingSettings';return this.apiClient.callApi("/api/v2/routing/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSettingsTranscription(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSmsPhonenumber(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling putRoutingSmsPhonenumber';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PUT",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserDirectroutingbackupSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserUtilization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingUtilization';return this.apiClient.callApi("/api/v2/routing/utilization","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUtilizationLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingWrapupcode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskill(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class ve{constructor(e){this.apiClient=e||w.instance}deleteScimUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","DELETE",{userId:e},{},{"If-Match":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}deleteScimV2User(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","DELETE",{userId:e},{},{"If-Match":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimGroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/groups","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimResourcetype(e){if(void 0===e||null===e)throw'Missing the required parameter "resourceType" when calling getScimResourcetype';return this.apiClient.callApi("/api/v2/scim/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimResourcetypes(){return this.apiClient.callApi("/api/v2/scim/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getScimSchema';return this.apiClient.callApi("/api/v2/scim/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimServiceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Group(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Groups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Resourcetype(e){if(void 0===e||null===e)throw'Missing the required parameter "resourceType" when calling getScimV2Resourcetype';return this.apiClient.callApi("/api/v2/scim/v2/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Resourcetypes(){return this.apiClient.callApi("/api/v2/scim/v2/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Schema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getScimV2Schema';return this.apiClient.callApi("/api/v2/scim/v2/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Schemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Serviceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2User(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Users(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}patchScimGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchScimGroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchScimUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimV2Group(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimV2User(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchScimV2User';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PATCH",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}postScimUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postScimUsers';return this.apiClient.callApi("/api/v2/scim/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}postScimV2Users(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postScimV2Users';return this.apiClient.callApi("/api/v2/scim/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putScimGroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling putScimUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimV2Group(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putScimV2Group';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimV2User(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling putScimV2User';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PUT",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}}class Ce{constructor(e){this.apiClient=e||w.instance}postScreenrecordingToken(e){return e=e||{},this.apiClient.callApi("/api/v2/screenrecording/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ie{constructor(e){this.apiClient=e||w.instance}getScript(e){if(void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScript';return this.apiClient.callApi("/api/v2/scripts/{scriptId}","GET",{scriptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptPage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptPage';if(void 0===i||null===i)throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:t.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptPages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptPages';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScripts(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptId';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdPage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(void 0===i||null===i)throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:t.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPages';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdVariables';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/variables","GET",{scriptId:e},{input:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsUploadStatus(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getScriptsUploadStatus';return this.apiClient.callApi("/api/v2/scripts/uploads/{uploadId}/status","GET",{uploadId:e},{longPoll:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postScriptExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","POST",{},{scriptDataVersion:e.scriptDataVersion},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class fe{constructor(e){this.apiClient=e||w.instance}getDocumentationGknSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "q64" when calling getDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDocumentationSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "q64" when calling getDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsTranscriptsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/transcripts/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsParticipantsAttributesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationAllSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationAllSearch';return this.apiClient.callApi("/api/v2/documentation/all/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationGknSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLocationsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTranscriptsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSitesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchConversationTarget(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchQueuemembersManage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchTeamsAssign(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ae{constructor(e){this.apiClient=e||w.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmailsSettings(){return this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSettingsExecutiondata(){return this.apiClient.callApi("/api/v2/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSettingsExecutiondata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';return this.apiClient.callApi("/api/v2/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class be{constructor(e){this.apiClient=e||w.instance}deleteSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","DELETE",{topicId:e},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","DELETE",{topicId:e,facebookIngestionRuleId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","DELETE",{topicId:e,openId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","DELETE",{topicId:e,twitterIngestionRuleId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","GET",{topicId:e},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","GET",{topicId:e,facebookIngestionRuleId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,facebookIngestionRuleId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions","GET",{topicId:e,facebookIngestionRuleId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","GET",{topicId:e,openId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,openId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions","GET",{topicId:e,openId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","GET",{topicId:e,twitterIngestionRuleId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,twitterIngestionRuleId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions","GET",{topicId:e,twitterIngestionRuleId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),includeDeleted:e.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PATCH",{topicId:e,facebookIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PATCH",{topicId:e,openId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PATCH",{topicId:e,twitterIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesTwitter';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PUT",{topicId:e,facebookIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PUT",{topicId:e,openId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PUT",{topicId:e,twitterIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class je{constructor(e){this.apiClient=e||w.instance}deleteSpeechandtextanalyticsCategory(e){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","DELETE",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","DELETE",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "programId" when calling deleteSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","DELETE",{programId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsSentimentfeedback(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}","DELETE",{sentimentFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsTopic(e){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","DELETE",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortOrder:e.sortOrder,sortBy:e.sortBy,ids:this.apiClient.buildCollectionParam(e.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsCategory(e){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","GET",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/categories","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturl","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsDictionaryfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","GET",{},{dialect:e.dialect,nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","GET",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgram(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramMappings(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramTranscriptionengines(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsPrograms(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsGeneralJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsGeneralJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsMappings(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/mappings","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsPublishjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsTranscriptionenginesDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsUnpublished(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/unpublished","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSentimentDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentiment/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSentimentfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSettings(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopic(e){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","GET",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsPublishjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(void 0===i||null===i)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}","GET",{languageId:e,conversationId:i},{communicationId:t.communicationId,recordingId:t.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTranslationsLanguages(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchSpeechandtextanalyticsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsCategories(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsDictionaryfeedback(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsDictionaryfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsPrograms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsPrograms';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsProgramsGeneralJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsGeneralJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsProgramsPublishjobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsSentimentfeedback(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTopics(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopics';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTopicsPublishjobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTranscriptsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgram(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgramMappings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsTopic(e,i){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Pe{constructor(e){this.apiClient=e||w.instance}deleteStationAssociateduser(e){if(void 0===e||null===e)throw'Missing the required parameter "stationId" when calling deleteStationAssociateduser';return this.apiClient.callApi("/api/v2/stations/{stationId}/associateduser","DELETE",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getStation(e){if(void 0===e||null===e)throw'Missing the required parameter "stationId" when calling getStation';return this.apiClient.callApi("/api/v2/stations/{stationId}","GET",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getStations(e){return e=e||{},this.apiClient.callApi("/api/v2/stations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,name:e.name,userSelectable:e.userSelectable,webRtcUserId:e.webRtcUserId,id:e.id,lineAppearanceId:e.lineAppearanceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class ye{constructor(e){this.apiClient=e||w.instance}getSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Oe{constructor(e){this.apiClient=e||w.instance}deleteTaskmanagementWorkbin(e){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","DELETE",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorkitem(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling deleteTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","DELETE",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorkitemsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling deleteTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktype(e){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","DELETE",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbin(e){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","GET",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/history","GET",{workbinId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkbinVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions/{entityVersion}","GET",{workbinId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions","GET",{workbinId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitem(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","GET",{workitemId:e},{expands:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/history","GET",{workitemId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemUserWrapups(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","GET",{workitemId:e,userId:i},{expands:t.expands,after:t.after,pageSize:t.pageSize,sortOrder:t.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkitemVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions/{entityVersion}","GET",{workitemId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions","GET",{workitemId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/wrapups","GET",{workitemId:e},{expands:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsQueryJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsQueryJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getTaskmanagementWorkitemsSchemaVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktype(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","GET",{worktypeId:e},{expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","GET",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOncreateRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","GET",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeHistory';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/history","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeStatuses(e){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","GET",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorktypeVersion';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions/{entityVersion}","GET",{worktypeId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersions';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkbin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitem(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemAssignment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemUserWrapups(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","PATCH",{workitemId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemUsersMeWrapups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUsersMeWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/me/wrapups","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktype(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeStatus(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","PATCH",{worktypeId:e,statusId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbins(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbins';return this.apiClient.callApi("/api/v2/taskmanagement/workbins","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbinsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbinsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemAcdCancel(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemAcdCancel';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/acd/cancel","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemDisconnect';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/disconnect","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemTerminate';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/terminate","POST",{workitemId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitems(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitems';return this.apiClient.callApi("/api/v2/taskmanagement/workitems","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsQueryJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsSchemas';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeFlowsOncreateRules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeStatuses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypes';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypesQuery';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTaskmanagementWorkitemsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Me{constructor(e){this.apiClient=e||w.instance}deleteTeam(e){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling deleteTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","DELETE",{teamId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTeamMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(void 0===i||null===i)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeam(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeamMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling getTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","GET",{teamId:e},{pageSize:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeams(e){return e=e||{},this.apiClient.callApi("/api/v2/teams","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTeam(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling patchTeam';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postTeamMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTeams(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeams';return this.apiClient.callApi("/api/v2/teams","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Te{constructor(e){this.apiClient=e||w.instance}getTelephonyMediaregions(){return this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySipmessagesConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversation';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversationHeaders';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}/headers","GET",{conversationId:e},{keys:this.apiClient.buildCollectionParam(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySiptraces(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(void 0===i||null===i)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:t.callId,toUser:t.toUser,fromUser:t.fromUser,conversationId:t.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySiptracesDownloadDownloadId(e){if(void 0===e||null===e)throw'Missing the required parameter "downloadId" when calling getTelephonySiptracesDownloadDownloadId';return this.apiClient.callApi("/api/v2/telephony/siptraces/download/{downloadId}","GET",{downloadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonySiptracesDownload(e){if(void 0===e||null===e)throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';return this.apiClient.callApi("/api/v2/telephony/siptraces/download","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class qe{constructor(e){this.apiClient=e||w.instance}deleteTelephonyProvidersEdge(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgeLogicalinterface(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling deleteTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","DELETE",{edgeId:e,interfaceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgeSoftwareupdate(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesAlertablepresences(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesCertificateauthority(e){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling deleteTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","DELETE",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesDidpool(e){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling deleteTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","DELETE",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesEdgegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling deleteTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","DELETE",{edgeGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesExtensionpool(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling deleteTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","DELETE",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesPhone(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling deleteTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","DELETE",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesPhonebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling deleteTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","DELETE",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesSite(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","DELETE",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","DELETE",{siteId:e,outboundRouteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesTrunkbasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling deleteTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","DELETE",{trunkBaseSettingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdge(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticNslookup(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticPing(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticRoute(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticTracepath(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogicalinterface(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getTelephonyProvidersEdgeLogsJob';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}","GET",{edgeId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/metrics","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgePhysicalinterface(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgePhysicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgePhysicalinterfaces(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSetuppackage(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSetuppackage';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/setuppackage","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSoftwareupdate(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSoftwareversions(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareversions';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareversions","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeTrunks';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/trunks","GET",{edgeId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdges(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"edgeGroup.id":e.edgeGroupId,sortBy:e.sortBy,managed:e.managed,showCloudMedia:e.showCloudMedia},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesAlertablepresences(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","GET",{},{type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesCertificateauthorities(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesCertificateauthority(e){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling getTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","GET",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDid(e){if(void 0===e||null===e)throw'Missing the required parameter "didId" when calling getTelephonyProvidersEdgesDid';return this.apiClient.callApi("/api/v2/telephony/providers/edges/dids/{didId}","GET",{didId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpool(e){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling getTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","GET",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpoolsDids(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "type" when calling getTelephonyProvidersEdgesDidpoolsDids';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/dids","GET",{},{type:e,id:this.apiClient.buildCollectionParam(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDids(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/dids","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,phoneNumber:e.phoneNumber,"owner.id":e.ownerId,"didPool.id":e.didPoolId,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling getTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","GET",{edgeGroupId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===i||null===i)throw'Missing the required parameter "edgetrunkbaseId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","GET",{edgegroupId:e,edgetrunkbaseId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,managed:e.managed},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgeversionreport(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgeversionreport","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExpired(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/expired","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtension(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionId" when calling getTelephonyProvidersEdgesExtension';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions/{extensionId}","GET",{extensionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpool(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling getTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","GET",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,number:e._number},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpoolsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,number:e._number},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLine(e){if(void 0===e||null===e)throw'Missing the required parameter "lineId" when calling getTelephonyProvidersEdgesLine';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/{lineId}","GET",{lineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "lineBaseId" when calling getTelephonyProvidersEdgesLinebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings/{lineBaseId}","GET",{lineBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLines(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/lines","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinesTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "lineBaseSettingsId" when calling getTelephonyProvidersEdgesLinesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/template","GET",{},{lineBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/logicalinterfaces","GET",{},{edgeIds:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMediastatisticsConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/metrics","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesOutboundroutes(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/outboundroutes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"externalTrunkBases.ids":e.externalTrunkBasesIds,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhone(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling getTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","GET",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling getTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","GET",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/availablemetabases","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettingsTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneMetabaseId" when calling getTelephonyProvidersEdgesPhonebasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/template","GET",{},{phoneMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"site.id":e.siteId,"webRtcUser.id":e.webRtcUserId,"phoneBaseSettings.id":e.phoneBaseSettingsId,"lines.loggedInUser.id":e.linesLoggedInUserId,"lines.defaultForUser.id":e.linesDefaultForUserId,phone_hardwareId:e.phoneHardwareId,"lines.id":e.linesId,"lines.name":e.linesName,name:e.name,"status.operationalStatus":e.statusOperationalStatus,"secondaryStatus.operationalStatus":e.secondaryStatusOperationalStatus,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),fields:this.apiClient.buildCollectionParam(e.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonesTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseSettingsId" when calling getTelephonyProvidersEdgesPhonesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/template","GET",{},{phoneBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhysicalinterfaces(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesPhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/physicalinterfaces","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSite(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(void 0===i||null===i)throw'Missing the required parameter "numberPlanId" when calling getTelephonyProvidersEdgesSiteNumberplan';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/{numberPlanId}","GET",{siteId:e,numberPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplans(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplansClassifications';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/classifications","GET",{siteId:e},{classification:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteOutboundroute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","GET",{siteId:e,outboundRouteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","GET",{siteId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteSiteconnections(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSites(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,"location.id":e.locationId,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunk(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunk';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunkMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}/metrics","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling getTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","GET",{trunkBaseSettingsId:e},{ignoreHidden:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkMetabaseId" when calling getTelephonyProvidersEdgesTrunkbasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/template","GET",{},{trunkMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunks(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"edge.id":e.edgeId,"trunkBase.id":e.trunkBaseId,trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunksMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkIds" when calling getTelephonyProvidersEdgesTrunksMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/metrics","GET",{},{trunkIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkswithrecording(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkswithrecording","GET",{},{trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTelephonyProvidersEdgesSiteSiteconnections(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PATCH",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticPing(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogicalinterfaces(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogsJobUpload(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobUpload';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}/upload","POST",{edgeId:e,jobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobs';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/reboot","POST",{edgeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeSoftwareupdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeStatuscode';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/statuscode","POST",{edgeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeUnpair(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeUnpair';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/unpair","POST",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdges(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdges';return this.apiClient.callApi("/api/v2/telephony/providers/edges","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesAddressvalidation(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesAddressvalidation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/addressvalidation","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesCertificateauthorities(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesCertificateauthorities';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesDidpools(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesDidpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesEdgegroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesEdgegroups';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesExtensionpools(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesExtensionpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhoneReboot(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling postTelephonyProvidersEdgesPhoneReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}/reboot","POST",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhonebasesettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonebasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhones(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhones';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhonesReboot(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonesReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/reboot","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","POST",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSites(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSites';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSitesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesTrunkbasesettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunkbasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdge(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgeLogicalinterface(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","PUT",{edgeId:e,interfaceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesAlertablepresences(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesAlertablepresences';return this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesCertificateauthority(e,i){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesDidpool(e,i){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesEdgegroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===i||null===i)throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","PUT",{edgegroupId:e,edgetrunkbaseId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesExtensionpool(e,i){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesPhone(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesPhonebasesetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSite(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteNumberplans(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteOutboundroute(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","PUT",{siteId:e,outboundRouteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteSiteconnections(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesTrunkbasesetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Se{constructor(e){this.apiClient=e||w.instance}getTextbotsBotsSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/textbots/bots/search","GET",{},{botType:this.apiClient.buildCollectionParam(e.botType,"multi"),botName:e.botName,botId:this.apiClient.buildCollectionParam(e.botId,"multi"),pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotflowsSessionTurns(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(void 0===i||null===i)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotflowsSessions(e){if(void 0===e||null===e)throw'Missing the required parameter "launchRequest" when calling postTextbotsBotflowsSessions';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotsExecute(e){if(void 0===e||null===e)throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';return this.apiClient.callApi("/api/v2/textbots/bots/execute","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ke{constructor(e){this.apiClient=e||w.instance}deleteToken(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteToken';return this.apiClient.callApi("/api/v2/tokens/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTokensMe(){return this.apiClient.callApi("/api/v2/tokens/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTokensMe(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/me","GET",{},{preserveIdleTTL:e.preserveIdleTTL},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTokensTimeout(){return this.apiClient.callApi("/api/v2/tokens/timeout","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}headTokensMe(){return this.apiClient.callApi("/api/v2/tokens/me","HEAD",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putTokensTimeout(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/timeout","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ee{constructor(e){this.apiClient=e||w.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftFunctionUpload(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeDocumentuploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerUploads(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsLearningCoverart(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsLearningCoverart';return this.apiClient.callApi("/api/v2/uploads/learning/coverart","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsPublicassetsImages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsPublicassetsImages';return this.apiClient.callApi("/api/v2/uploads/publicassets/images","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsRecordings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsRecordings';return this.apiClient.callApi("/api/v2/uploads/recordings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsWorkforcemanagementHistoricaldataCsv(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';return this.apiClient.callApi("/api/v2/uploads/workforcemanagement/historicaldata/csv","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ge{constructor(e){this.apiClient=e||w.instance}getOauthClientUsageQueryResult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageSummary(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageQueryExecutionIdResults(e){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getUsageQueryExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/query/{executionId}/results","GET",{executionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getUsageSimplesearchExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/simplesearch/{executionId}/results","GET",{executionId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientUsageQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsageQuery';return this.apiClient.callApi("/api/v2/usage/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageSimplesearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsageSimplesearch';return this.apiClient.callApi("/api/v2/usage/simplesearch","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ue{constructor(e){this.apiClient=e||w.instance}deleteUserrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling deleteUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","DELETE",{recordingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecording(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","GET",{recordingId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecordingMedia';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}/media","GET",{recordingId:e},{formatId:i.formatId,async:i.async},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingTranscoding(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecordingTranscoding';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}/transcoding","GET",{recordingId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/userrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingsSummary(){return this.apiClient.callApi("/api/v2/userrecordings/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserrecording(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling putUserrecording';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","PUT",{recordingId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class De{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationSubjectDivisionRole(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:i,roleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUser';return this.apiClient.callApi("/api/v2/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutinglanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutingskill(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserStationAssociatedstation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserStationAssociatedstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserStationDefaultstation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserStationDefaultstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserVerifier(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(void 0===i||null===i)throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedSubjectId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(void 0===i||null===i)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProfilesUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jid:this.apiClient.buildCollectionParam(e.jid,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUser';return this.apiClient.callApi("/api/v2/users/{userId}","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserAdjacents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserAdjacents';return this.apiClient.callApi("/api/v2/users/{userId}/adjacents","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserCallforwarding(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserDirectreports(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserDirectreports';return this.apiClient.callApi("/api/v2/users/{userId}/directreports","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserFavorites(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserFavorites';return this.apiClient.callApi("/api/v2/users/{userId}/favorites","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGeolocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserOutofoffice(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserProfile';return this.apiClient.callApi("/api/v2/users/{userId}/profile","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserProfileskills(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutinglanguages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingskills(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSkillgroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserState(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserStation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserStation';return this.apiClient.callApi("/api/v2/users/{userId}/station","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSuperiors(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSuperiors';return this.apiClient.callApi("/api/v2/users/{userId}/superiors","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserTrustors(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserTrustors';return this.apiClient.callApi("/api/v2/users/{userId}/trustors","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserVerifiers(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserVerifiers';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersChatsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/chats/me","GET",{},{excludeClosed:e.excludeClosed,includePresence:e.includePresence,after:e.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivities(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities","GET",{},{userId:this.apiClient.buildCollectionParam(e.userId,"multi"),moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivitiesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivity(e,i){if(void 0===e||null===e)throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(void 0===i||null===i)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserCallforwarding(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserGeolocation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchUserQueue';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchUserQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(t.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguagesBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchUsersBulk';return this.apiClient.callApi("/api/v2/users/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkadd(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkremove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkreplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectDivisionRole(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:i,roleId:t},{subjectType:n.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUserExternalid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserExternalid';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserInvite(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserInvite';return this.apiClient.callApi("/api/v2/users/{userId}/invite","POST",{userId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUserPassword(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserPassword';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutinglanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutingskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsers';return this.apiClient.callApi("/api/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersDevelopmentActivitiesAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersDevelopmentActivitiesAggregatesQuery';return this.apiClient.callApi("/api/v2/users/development/activities/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersMePassword(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersMePassword';return this.apiClient.callApi("/api/v2/users/me/password","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchConversationTarget(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchQueuemembersManage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchTeamsAssign(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingDirectroutingbackupSettingsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserDirectroutingbackupSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserUtilization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserCallforwarding(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserOutofoffice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserProfileskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserProfileskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling putUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskill(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingstatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserState(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserState';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserStationAssociatedstationStationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(void 0===i||null===i)throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserStationDefaultstationStationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(void 0===i||null===i)throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserVerifier(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserVerifier';if(void 0===i||null===i)throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class Re{constructor(e){this.apiClient=e||w.instance}getDate(){return this.apiClient.callApi("/api/v2/date","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIpranges(){return this.apiClient.callApi("/api/v2/ipranges","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postCertificateDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCertificateDetails';return this.apiClient.callApi("/api/v2/certificate/details","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class xe{constructor(e){this.apiClient=e||w.instance}deleteVoicemailMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling deleteVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","DELETE",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteVoicemailMessages(){return this.apiClient.callApi("/api/v2/voicemail/messages","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupMailbox(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupMailbox';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/mailbox","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupMessages';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/messages","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupPolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMailbox(){return this.apiClient.callApi("/api/v2/voicemail/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMeMailbox(){return this.apiClient.callApi("/api/v2/voicemail/me/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMeMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/me/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMePolicy(){return this.apiClient.callApi("/api/v2/voicemail/me/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessage(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","GET",{messageId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessageMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getVoicemailMessageMedia';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}/media","GET",{messageId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","GET",{},{ids:e.ids,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailPolicy(){return this.apiClient.callApi("/api/v2/voicemail/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailQueueMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getVoicemailQueueMessages';return this.apiClient.callApi("/api/v2/voicemail/queues/{queueId}/messages","GET",{queueId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserMailbox(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserMailbox';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/mailbox","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserMessages';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/messages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailGroupPolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailMePolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchVoicemailMePolicy';return this.apiClient.callApi("/api/v2/voicemail/me/policy","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailUserpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailPolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putVoicemailPolicy';return this.apiClient.callApi("/api/v2/voicemail/policy","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailUserpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class We{constructor(e){this.apiClient=e||w.instance}deleteWebchatDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebchatGuestConversationMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebchatSettings(){return this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatDeployments(){return this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMediarequest(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(void 0===i||null===i)throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMediarequests(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatSettings(){return this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchWebchatGuestConversationMediarequest(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(void 0===i||null===i)throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversationMemberMessages(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversationMemberTyping(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putWebchatDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWebchatSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ze{constructor(e){this.apiClient=e||w.instance}deleteWebdeploymentsConfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling deleteWebdeploymentsConfiguration';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}","DELETE",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(void 0===i||null===i)throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsTokenRevoke(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/revoke","DELETE",{},{},{"X-Journey-Session-Id":e.xJourneySessionId,"X-Journey-Session-Type":e.xJourneySessionType},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersions';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions","GET",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersionsDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","GET",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/configurations","GET",{},{showOnlyPublished:e.showOnlyPublished},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeployment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","GET",{deploymentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeploymentCobrowseSessionId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(void 0===i||null===i)throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/configurations","GET",{deploymentId:e},{type:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/deployments","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsConfigurationVersionsDraftPublish(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling postWebdeploymentsConfigurationVersionsDraftPublish';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft/publish","POST",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsConfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationVersion" when calling postWebdeploymentsConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/configurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "deployment" when calling postWebdeploymentsDeployments';return this.apiClient.callApi("/api/v2/webdeployments/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsTokenOauthcodegrantjwtexchange(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebdeploymentsTokenOauthcodegrantjwtexchange';return this.apiClient.callApi("/api/v2/webdeployments/token/oauthcodegrantjwtexchange","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsTokenRefresh(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/refresh","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWebdeploymentsConfigurationVersionsDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(void 0===i||null===i)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWebdeploymentsDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(void 0===i||null===i)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Be{constructor(e){this.apiClient=e||w.instance}getWebmessagingMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/webmessaging/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class Le{constructor(e){this.apiClient=e||w.instance}deleteWidgetsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWidgetsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWidgetsDeployments(){return this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWidgetsDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putWidgetsDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ne{constructor(e){this.apiClient=e||w.instance}deleteWorkforcemanagementBusinessunit(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","DELETE",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitActivitycode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","DELETE",{businessUnitId:e,runId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","DELETE",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","DELETE",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","DELETE",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunit(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","DELETE",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitWorkplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherence(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getWorkforcemanagementAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence","GET",{},{userId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceExplanation(e){if(void 0===e||null===e)throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/{explanationId}","GET",{explanationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceExplanationsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceExplanationsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceHistoricalBulkJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalBulkJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceHistoricalJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentAdherenceExplanation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(void 0===i||null===i)throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","GET",{agentId:e,explanationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentManagementunit(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/managementunit","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentsMeManagementunit(){return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/managementunit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsOffersJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsSettings(){return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTrade(e){if(void 0===e||null===e)throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","GET",{tradeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTrades(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","GET",{},{forceAsync:e.forceAsync},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTradesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTradesStateJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesStateJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivitycode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","GET",{businessUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","GET",{businessUnitId:e},{state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplansJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/jobs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(void 0===i||null===i)throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/{tradeId}","GET",{businessUnitId:e,tradeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}","GET",{businessUnitId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(void 0===i||null===i)throw'Missing the required parameter "_date" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday/planninggroups","GET",{businessUnitId:e},{date:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitManagementunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/managementunits","GET",{businessUnitId:e},{feature:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitPlanninggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitPlanninggroups(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRun(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","GET",{businessUnitId:e,runId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===t||null===t)throw'Missing the required parameter "managementUnitIds" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===n||null===n)throw'Missing the required parameter "expand" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}/result","GET",{businessUnitId:e,runId:i},{managementUnitIds:this.apiClient.buildCollectionParam(t,"multi"),expand:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRuns(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRuns';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitStaffinggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedule(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{businessUnitId:e,weekId:i,scheduleId:t},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults","GET",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/headcountforecast","GET",{businessUnitId:e,weekId:i,scheduleId:t},{forceDownload:n.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===n||null===n)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/history/agents/{agentId}","GET",{businessUnitId:e,weekId:i,scheduleId:t,agentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions","GET",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===n||null===n)throw'Missing the required parameter "recalculationId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/{recalculationId}","GET",{businessUnitId:e,weekId:i,scheduleId:t,recalculationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedules(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","GET",{businessUnitId:e,weekId:i},{includeOnlyPublished:t.includeOnlyPublished,expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/data","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{weekNumber:n.weekNumber,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/generationresults","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/longtermforecastdata","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/planninggroups","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/staffingrequirement","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{weekNumbers:this.apiClient.buildCollectionParam(n.weekNumbers,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecasts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts","GET",{businessUnitId:e,weekDateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","GET",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","GET",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/summary","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbids(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","GET",{},{feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementCalendarDataIcs(e){if(void 0===e||null===e)throw'Missing the required parameter "calendarId" when calling getWorkforcemanagementCalendarDataIcs';return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/data/ics","GET",{},{calendarId:e},{},{},null,["PureCloud OAuth"],["application/json"],["text/calendar"])}getWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/deletejob","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementHistoricaldataImportstatus(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/importstatus","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementIntegrationsHris(){return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementIntegrationsHrisTimeofftypesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementIntegrationsHrisTimeofftypesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/timeofftypes/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitActivitycodes(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence","GET",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAgent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(void 0===i||null===i)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:t.excludeCapabilities,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAgentShifttrades(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgentShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}/shifttrades","GET",{managementUnitId:e,agentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitShifttradesMatched(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesMatched';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/matched","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitShifttradesUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeofflimits(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeoffplans(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","GET",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits","GET",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests","GET",{managementUnitId:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekSchedule(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementManagementunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{managementUnitId:e,weekId:i,scheduleId:t},{expand:n.expand,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekSchedules(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules","GET",{managementUnitId:e,weekId:i},{includeOnlyPublished:t.includeOnlyPublished,earliestWeekDate:t.earliestWeekDate,latestWeekDate:t.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekShifttrades(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","GET",{managementUnitId:e,weekDateId:i},{evaluateMatches:t.evaluateMatches,forceDownloadService:t.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(t.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplanrotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementNotifications(){return this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementSchedulingjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementSchedulingjob';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementShifttrades(){return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrades","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementShrinkageJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shrinkage/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffbalanceJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementTimeoffbalanceJob';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequest(e){if(void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequestWaitlistpositions(e){if(void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequests(){return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementUserWorkplanbidranks(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbidPreferences(e){if(void 0===e||null===e)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbidWorkplans(e){if(void 0===e||null===e)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/workplans","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbids(){return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAgentAdherenceExplanation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(void 0===i||null===i)throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","PATCH",{agentId:e,explanationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAlternativeshiftsTrade(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTradesStateJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitActivitycode(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","PATCH",{businessUnitId:e,activityCodeId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitActivityplan(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","PATCH",{businessUnitId:e,activityPlanId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","PATCH",{businessUnitId:e,planningGroupId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","PATCH",{businessUnitId:e,runId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","PATCH",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","PATCH",{businessUnitId:e,staffingGroupId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{businessUnitId:e,timeOffPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","PATCH",{businessUnitId:e,bidId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","PATCH",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","PATCH",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitAgents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeofflimit(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","PATCH",{managementUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeoffplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{managementUnitId:e,timeOffPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(void 0===i||null===i)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(void 0===t||null===t)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus","PATCH",{managementUnitId:e,timeOffRequestId:i,userId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","PATCH",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===t||null===t)throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWeekShifttrade';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}","PATCH",{managementUnitId:e,weekDateId:i,tradeId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWorkplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","PATCH",{managementUnitId:e,workPlanId:i},{validationMode:t.validationMode},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","PATCH",{managementUnitId:e,workPlanRotationId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementUsersWorkplanbidranksBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUsersWorkplanbidranksBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/users/workplanbidranks/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceExplanations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceHistoricalBulk(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentAdherenceExplanations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query","POST",{agentId:e},{forceAsync:t.forceAsync,forceDownloadService:t.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentsIntegrationsHrisQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents/integrations/hris/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentsMePossibleworkshifts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/possibleworkshifts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentschedulesMine(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/mine","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsOffersJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersSearchJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsTrades(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsTrades';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs","POST",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivityplans(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/explanations/query","POST",{businessUnitId:e},{forceAsync:t.forceAsync,forceDownloadService:t.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search","POST",{businessUnitId:e},{forceAsync:t.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitIntraday(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:i.forceAsync},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query","POST",{businessUnitId:e,weekId:i,scheduleId:t},{forceAsync:a.forceAsync,forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update/uploadurl","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedules(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import/uploadurl","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy","POST",{businessUnitId:e,weekDateId:i,forecastId:t},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/generate","POST",{businessUnitId:e,weekDateId:i},{forceAsync:n.forceAsync},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import","POST",{businessUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import/uploadurl","POST",{businessUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy","POST",{businessUnitId:e,bidId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups","POST",{businessUnitId:e,bidId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementCalendarUrlIcs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","POST",{},{language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/deletejob","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementHistoricaldataValidate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/validate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "hrisIntegrationId" when calling postWorkforcemanagementIntegrationsHriTimeofftypesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/{hrisIntegrationId}/timeofftypes/jobs","POST",{hrisIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search","POST",{managementUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitMove(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitSchedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitShrinkageJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequests(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate","POST",{managementUnitId:e,userId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===t||null===t)throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}/match","POST",{managementUnitId:e,weekDateId:i,tradeId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttrades(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","POST",{managementUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/search","POST",{managementUnitId:e,weekDateId:i},{forceDownloadService:n.forceDownloadService},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/state/bulk","POST",{managementUnitId:e,weekDateId:i},{forceAsync:n.forceAsync},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy","POST",{managementUnitId:e,workPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanValidate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate","POST",{managementUnitId:e,workPlanId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy","POST",{managementUnitId:e,workPlanRotationId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:i.validationMode},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementNotificationsUpdate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications/update","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTeamAdherenceHistorical(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTeamShrinkageJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffbalanceJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeofflimitsAvailableQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeofflimits/available/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequests(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequestsEstimate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementAgentIntegrationsHris(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{businessUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{managementUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}}return new class{constructor(){this.ApiClient=new w,this.ApiClientClass=w,this.AgentAssistantsApi=v,this.AgentCopilotApi=C,this.AgentUIApi=I,this.AlertingApi=f,this.AnalyticsApi=A,this.ArchitectApi=b,this.AuditApi=j,this.AuthorizationApi=P,this.BillingApi=y,this.CarrierServicesApi=O,this.ChatApi=M,this.CoachingApi=T,this.ContentManagementApi=q,this.ConversationsApi=S,this.DataExtensionsApi=k,this.DataPrivacyApi=E,this.DownloadsApi=G,this.EmailsApi=U,this.EmployeeEngagementApi=D,this.EventsApi=R,this.ExternalContactsApi=x,this.FaxApi=W,this.FlowsApi=z,this.GamificationApi=B,this.GeneralDataProtectionRegulationApi=L,this.GeolocationApi=N,this.GreetingsApi=K,this.GroupsApi=J,this.IdentityProviderApi=V,this.InfrastructureAsCodeApi=F,this.IntegrationsApi=Q,this.JourneyApi=_,this.KnowledgeApi=H,this.LanguageUnderstandingApi=$,this.LanguagesApi=Z,this.LearningApi=X,this.LicenseApi=Y,this.LocationsApi=ee,this.LogCaptureApi=ie,this.MessagingApi=te,this.MobileDevicesApi=ne,this.NotificationsApi=ae,this.OAuthApi=oe,this.ObjectsApi=re,this.OperationalEventsApi=le,this.OrganizationApi=se,this.OrganizationAuthorizationApi=pe,this.OutboundApi=ue,this.PresenceApi=de,this.ProcessAutomationApi=ce,this.QualityApi=ge,this.RecordingApi=he,this.ResponseManagementApi=me,this.RoutingApi=we,this.SCIMApi=ve,this.ScreenRecordingApi=Ce,this.ScriptsApi=Ie,this.SearchApi=fe,this.SettingsApi=Ae,this.SocialMediaApi=be,this.SpeechTextAnalyticsApi=je,this.StationsApi=Pe,this.SuggestApi=ye,this.TaskManagementApi=Oe,this.TeamsApi=Me,this.TelephonyApi=Te,this.TelephonyProvidersEdgeApi=qe,this.TextbotsApi=Se,this.TokensApi=ke,this.UploadsApi=Ee,this.UsageApi=Ge,this.UserRecordingsApi=Ue,this.UsersApi=De,this.UtilitiesApi=Re,this.VoicemailApi=xe,this.WebChatApi=We,this.WebDeploymentsApi=ze,this.WebMessagingApi=Be,this.WidgetsApi=Le,this.WorkforceManagementApi=Ne,this.PureCloudRegionHosts=l}}});
\ No newline at end of file
+define(["https","axios","qs"],function(e,i,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(e),o=n(i),r=n(t),l={us_east_1:"mypurecloud.com",eu_west_1:"mypurecloud.ie",ap_southeast_2:"mypurecloud.com.au",ap_northeast_1:"mypurecloud.jp",eu_central_1:"mypurecloud.de",us_west_2:"usw2.pure.cloud",ca_central_1:"cac1.pure.cloud",ap_northeast_2:"apne2.pure.cloud",eu_west_2:"euw2.pure.cloud",ap_south_1:"aps1.pure.cloud",us_east_2:"use2.us-gov-pure.cloud",sa_east_1:"sae1.pure.cloud",me_central_1:"mec1.pure.cloud",ap_northeast_3:"apne3.pure.cloud",eu_central_2:"euc2.pure.cloud"};const s={levels:{none:0,error:1,debug:2,trace:3}},p={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},u={formats:{JSON:"json",TEXT:"text"}};class d{get logLevelEnum(){return p}get logFormatEnum(){return u}constructor(){this.log_level=p.level.LNone,this.log_format=u.formats.TEXT,this.log_to_console=!0,this.log_file_path,this.log_response_body=!1,this.log_request_body=!1,this.setLogger()}setLogger(){if("undefined"==typeof window){const e=require("winston");this.logger=e.createLogger({levels:s.levels,level:this.log_level}),this.log_file_path&&""!==this.log_file_path&&(this.log_format===u.formats.JSON?this.logger.add(new e.transports.File({format:e.format.json(),filename:this.log_file_path})):this.logger.add(new e.transports.File({format:e.format.combine(e.format(e=>(e.level=e.level.toUpperCase(),e))(),e.format.simple()),filename:this.log_file_path}))),this.log_to_console&&(this.log_format===u.formats.JSON?this.logger.add(new e.transports.Console({format:e.format.json()})):this.logger.add(new e.transports.Console({format:e.format.combine(e.format(e=>(e.level=e.level.toUpperCase(),e))(),e.format.simple())})))}}log(e,i,t,n,a,o,r,l){var s=this.formatLog(e,i,t,n,a,o,r,l);"undefined"!=typeof window?this.calculateLogLevel(e)>0&&!0===this.log_to_console&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(s):console.log(`${e.toUpperCase()}: ${s}`)):this.logger.transports.length>0&&this.logger.log(e,s)}calculateLogLevel(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}formatLog(e,i,t,n,a,o,r,l){var s,p=a?JSON.parse(JSON.stringify(a)):null,d=o?JSON.parse(JSON.stringify(o)):null,c=r?JSON.parse(JSON.stringify(r)):null,g=l?JSON.parse(JSON.stringify(l)):null;return a&&(p.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===u.formats.JSON?(s={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"",statusCode:i},p&&(s.requestHeaders=p),d&&(s.responseHeaders=d),c&&(s.requestBody=c),g&&(s.responseBody=g)):s=`${(new Date).toISOString()}\n=== REQUEST === \n${this.formatValue("URL",decodeURIComponent(n))}${this.formatValue("Method",t)}${this.formatValue("Headers",this.formatHeaderString(p))}${this.formatValue("Body",c?JSON.stringify(c,null,2):"")}\n=== RESPONSE ===\n${this.formatValue("Status",i)}${this.formatValue("Headers",this.formatHeaderString(d))}${this.formatValue("CorrelationId",d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"")}${this.formatValue("Body",g?JSON.stringify(g,null,2):"")}`,s}formatHeaderString(e){var i="";if(!e)return i;for(const[t,n]of Object.entries(e))i+=`\n\t${t}: ${n}`;return i}formatValue(e,i){return i&&""!==i&&"{}"!==i?`${e}: ${i}\n`:""}getLogLevel(e){switch(e){case"error":return p.level.LError;case"debug":return p.level.LDebug;case"trace":return p.level.LTrace;default:return p.level.LNone}}getLogFormat(e){switch(e){case"json":return u.formats.JSON;default:return u.formats.TEXT}}}class c{get instance(){return c.instance}set instance(e){c.instance=e}constructor(){if(c.instance||(c.instance=this),"undefined"!=typeof window)this.configPath="";else{const e=require("os"),i=require("path");this.configPath=i.join(e.homedir(),".genesyscloudjavascript","config")}this.refresh_access_token=!0,this.refresh_token_wait_max=10,this.live_reload_config=!0,this.host,this.environment,this.basePath,this.authUrl,this.config,this.gateway=void 0,this.logger=new d,this.setEnvironment(),this.liveLoadConfig()}liveLoadConfig(){if("undefined"!=typeof window)this.configPath="";else if(this.updateConfigFromFile(),this.live_reload_config&&!0===this.live_reload_config)try{const e=require("fs");e.watchFile(this.configPath,{persistent:!1},(i,t)=>{this.updateConfigFromFile(),this.live_reload_config||e.unwatchFile(this.configPath)})}catch(e){}}setConfigPath(e){e&&e!==this.configPath&&(this.configPath=e,this.liveLoadConfig())}updateConfigFromFile(){if("undefined"==typeof window){const t=require("configparser");try{var e=new t;e.read(this.configPath),this.config=e}catch(e){if(e.name&&"MissingSectionHeaderError"===e.name){var i=require("fs").readFileSync(this.configPath,"utf8");this.config={_sections:JSON.parse(i)}}}this.config&&this.updateConfigValues()}}updateConfigValues(){if(this.logger.log_level=this.logger.getLogLevel(this.getConfigString("logging","log_level")),this.logger.log_format=this.logger.getLogFormat(this.getConfigString("logging","log_format")),this.logger.log_to_console=void 0!==this.getConfigBoolean("logging","log_to_console")?this.getConfigBoolean("logging","log_to_console"):this.logger.log_to_console,this.logger.log_file_path=void 0!==this.getConfigString("logging","log_file_path")?this.getConfigString("logging","log_file_path"):this.logger.log_file_path,this.logger.log_response_body=void 0!==this.getConfigBoolean("logging","log_response_body")?this.getConfigBoolean("logging","log_response_body"):this.logger.log_response_body,this.logger.log_request_body=void 0!==this.getConfigBoolean("logging","log_request_body")?this.getConfigBoolean("logging","log_request_body"):this.logger.log_request_body,this.refresh_access_token=void 0!==this.getConfigBoolean("reauthentication","refresh_access_token")?this.getConfigBoolean("reauthentication","refresh_access_token"):this.refresh_access_token,this.refresh_token_wait_max=void 0!==this.getConfigInt("reauthentication","refresh_token_wait_max")?this.getConfigInt("reauthentication","refresh_token_wait_max"):this.refresh_token_wait_max,this.live_reload_config=void 0!==this.getConfigBoolean("general","live_reload_config")?this.getConfigBoolean("general","live_reload_config"):this.live_reload_config,this.host=void 0!==this.getConfigString("general","host")?this.getConfigString("general","host"):this.host,void 0!==this.getConfigString("gateway","host")){let e={host:this.getConfigString("gateway","host")};void 0!==this.getConfigString("gateway","protocol")&&(e.protocol=this.getConfigString("gateway","protocol")),void 0!==this.getConfigInt("gateway","port")&&(e.port=this.getConfigInt("gateway","port")),void 0!==this.getConfigString("gateway","path_params_login")&&(e.path_params_login=this.getConfigString("gateway","path_params_login")),void 0!==this.getConfigString("gateway","path_params_api")&&(e.path_params_api=this.getConfigString("gateway","path_params_api")),void 0!==this.getConfigString("gateway","username")&&(e.username=this.getConfigString("gateway","username")),void 0!==this.getConfigString("gateway","password")&&(e.password=this.getConfigString("gateway","password")),this.setGateway(e)}else this.setGateway();this.setEnvironment(),this.logger.setLogger()}setGateway(e){e?(this.gateway={host:""},e.protocol?this.gateway.protocol=e.protocol:this.gateway.protocol="https",e.host?this.gateway.host=e.host:this.gateway.host="",e.port&&e.port>-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}setEnvironment(e){this.environment=e||(this.host?this.host:"mypurecloud.com"),this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath=`https://api.${this.environment}`,this.authUrl=`https://login.${this.environment}`}getConfUrl(e,i){if(!this.gateway)return i;if(!this.gateway.host)return i;var t=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(t=t+":"+this.gateway.port.toString()),"login"===e?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?t+=this.gateway.path_params_login:t=t+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?t+=this.gateway.path_params_api:t=t+"/"+this.gateway.path_params_api),t}getConfigString(e,i){if(this.config._sections[e])return this.config._sections[e][i]}getConfigBoolean(e,i){if(this.config._sections[e]&&void 0!==this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?"true"===this.config._sections[e][i]:this.config._sections[e][i]}getConfigInt(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}}class g{constructor(){this.timeout=16e3}setTimeout(e){if(null===e||void 0===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}setHttpsAgent(e){if(e&&"object"!=typeof e)throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}request(e){throw new Error("method must be implemented")}}class h{constructor(e,i,t,n,a,o){this.setUrl(e),this.setMethod(i),t&&this.setHeaders(t),n&&this.setParams(n),a&&this.setData(a),null!==o&&void 0!==o?this.setTimeout(o):this.timeout=16e3}setUrl(e){if(!e)throw new Error("The 'url' property is required");this.url=e}setMethod(e){if(!e||!["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"].includes(e.toUpperCase()))throw new Error("The 'method' property is invalid or missing");this.method=e.toUpperCase()}setData(e){if(void 0===e||null===e)throw new Error("The 'data' property is required");this.data=e}setParams(e){if(e&&"object"!=typeof e)throw new Error("The 'params' property must be an object");this.params=e}setHeaders(e){if(e&&"object"!=typeof e)throw new Error("The 'headers' property must be an object");this.headers=e}setTimeout(e){if(void 0===e||null===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}}class m extends g{constructor(e,i){super(),null!==e&&void 0!==e?this.setTimeout(e):this.timeout=16e3,null!==i&&void 0!==i?this.setHttpsAgent(i):this.httpsAgent,this._axiosInstance=o.default.create({})}request(e){if(!(e instanceof h))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");const i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}toAxiosConfig(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),null!=this.timeout&&void 0!=this.timeout&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}}class w{get instance(){return w.instance}set instance(e){w.instance=e}constructor(){w.instance||(w.instance=this),this.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"};try{localStorage.setItem("purecloud_local_storage_test","purecloud_local_storage_test"),localStorage.removeItem("purecloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this.authentications={"Guest Chat JWT":{type:"apiKey",in:"header",name:"Authorization"},"PureCloud OAuth":{type:"oauth2"}},this.defaultHeaders={},this.timeout=16e3,this.authData={},this.settingsPrefix="purecloud",this.refreshInProgress=!1,this.httpClient,this.proxyAgent,this.config=new c,"undefined"!=typeof window&&(window.ApiClient=this)}setReturnExtendedResponses(e){this.returnExtended=e}setPersistSettings(e,i){this.persistSettings=e,this.settingsPrefix=i?i.replace(/\W+/g,"_"):"purecloud"}_saveSettings(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;let i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem(`${this.settingsPrefix}_auth_data`,JSON.stringify(i))}catch(e){console.error(e)}}_loadSettings(){if(!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;const e=this.authData.state;this.authData=localStorage.getItem(`${this.settingsPrefix}_auth_data`),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}setEnvironment(e){this.config.setEnvironment(e)}setHttpClient(e){if(!(e instanceof g))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}getHttpClient(){return this.httpClient?this.httpClient:(this.httpClient=new m(this.timeout,this.proxyAgent),this.httpClient)}setMTLSCertificates(e,i,t){if("undefined"!=typeof window)throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead");{const n={};e&&(n.cert=require("fs").readFileSync(e)),i&&(n.key=require("fs").readFileSync(i)),t&&(n.ca=require("fs").readFileSync(t)),n.rejectUnauthorized=!0,this.proxyAgent=new a.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}}setMTLSContents(e,i,t){const n={};e&&(n.cert=e),i&&(n.key=i),t&&(n.ca=t),n.rejectUnauthorized=!0,this.proxyAgent=new a.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}setGateway(e){this.config.setGateway(e)}loginImplicitGrant(e,i,t){const n=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,t||(t={}),new Promise((e,i)=>{if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),n&&n.error)return n.accessToken=void 0,this._saveSettings(n),i(new Error(`[${n.error}] ${n.error_description}`));this._testTokenAccess().then(()=>{!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData)}).catch(e=>{var i={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),response_type:"token"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=this._buildAuthUrl("oauth/authorize",i);window.location.replace(n)})})}loginClientCredentialsGrant(e,i){this.clientId=e;var t=Buffer.from(`${e}:${i}`).toString("base64"),n=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((e,i)=>{if("undefined"!=typeof window)return void i(new Error("The client credentials grant is not supported in a browser."));const a={Authorization:`Basic ${t}`};var o=new h(`${n}/oauth/token`,"POST",a,null,"grant_type=client_credentials",this.timeout);this.getHttpClient().request(o).then(i=>{this.config.logger.log("trace",i.status,"POST",`${n}/oauth/token`,a,i.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",i.status,"POST",`${n}/oauth/token`,a,void 0,{grant_type:"client_credentials"},void 0),this.setAccessToken(i.data.access_token),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*i.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),e(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${n}/oauth/token`,a,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})})}loginSaml2BearerGrant(e,i,t,n){this.clientId=e;var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((o,r)=>{if("undefined"==typeof window){var l=Buffer.from(e+":"+i).toString("base64"),s=this._formAuthRequest(l,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});s.proxy=this.proxy;var p={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};s.then(e=>{this.config.logger.log("trace",e.status,"POST",`${a}/oauth/token`,s.headers,e.headers,p,void 0),this.config.logger.log("debug",e.status,"POST",`${a}/oauth/token`,s.headers,void 0,p,void 0);var i=e.data.access_token;this.setAccessToken(i),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),o(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${a}/oauth/token`,s.headers,e.response.headers,p,e.response.data),r(e)})}else r(new Error("The saml2bearer grant is not supported in a browser."))})}authorizePKCEGrant(e,i,t,n){this.clientId=e;var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);return new Promise((o,l)=>{var s=r.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n}),p=new h(`${a}/oauth/token`,"POST",{"Content-Type":"application/x-www-form-urlencoded"},null,s,this.timeout);const u=this.getHttpClient();var d={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n};u.request(p).then(e=>{this.config.logger.log("trace",e.status,"POST",`${a}/oauth/token`,p.headers,e.headers,d,void 0),this.config.logger.log("debug",e.status,"POST",`${a}/oauth/token`,p.headers,void 0,d,void 0);var i=e.data.access_token;this.setAccessToken(i),this.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),o(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`${a}/oauth/token`,p.headers,e.response.headers,d,e.response.data),l(e)})})}generatePKCECodeVerifier(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if("undefined"!=typeof window){const i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(e=>i[e%i.length]).join("")}try{const i=require("crypto").getRandomValues,t="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(i(new Uint32Array(e))).map(e=>t[e%t.length]).join("")}catch(e){throw new Error("Crypto module is missing/not supported.")}}computePKCECodeChallenge(e){if(e.length<43||e.length>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");if("undefined"!=typeof window){const i=(new TextEncoder).encode(e);return new Promise((e,t)=>{window.crypto.subtle.digest("SHA-256",i).then(i=>{let t=Buffer.from(i).toString("base64").replaceAll("+","-").replaceAll("/","_");t=t.split("=")[0],e(t)}).catch(e=>t(new Error(`Code Challenge Error ${e}`)))})}try{const i=require("crypto").createHash,t=(new TextEncoder).encode(e);return new Promise((e,n)=>{const a=i("sha256").update(t).digest();e(Buffer.from(a).toString("base64url"))})}catch(e){throw new Error("Crypto module is missing/not supported.")}}loginPKCEGrant(e,i,t,n){if(!this.hasLocalStorage&&!n)throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");const a=this._setValuesFromUrlQuery();return this.clientId=e,this.redirectUri=i,this.codeVerifier=n,t||(t={}),new Promise((e,i)=>{if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),a&&a.error)return this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),this._saveSettings({accessToken:void 0}),i(new Error(`[${a.error}] ${a.error_description}`));a&&a.code?(this.codeVerifier||this.hasLocalStorage&&(this.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),this.authorizePKCEGrant(this.clientId,this.codeVerifier,a.code,this.redirectUri).then(()=>{this._testTokenAccess().then(()=>{!this.authData.state&&a.state&&(this.authData.state=a.state),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),e(this.authData)}).catch(e=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error(`[${e.name}] ${e.msg}`))))}).catch(e=>(this._saveSettings({accessToken:void 0}),this.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error(`[${e.name}] ${e.msg}`))))):this._testTokenAccess().then(()=>{!this.authData.state&&t.state&&(this.authData.state=t.state),e(this.authData)}).catch(e=>{this.codeVerifier||(this.codeVerifier=this.generatePKCECodeVerifier(128),this.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",this.codeVerifier)),this.computePKCECodeChallenge(this.codeVerifier).then(e=>{var i={client_id:encodeURIComponent(this.clientId),redirect_uri:encodeURIComponent(this.redirectUri),code_challenge:encodeURIComponent(e),response_type:"code",code_challenge_method:"S256"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=this._buildAuthUrl("oauth/authorize",i);window.location.replace(n)}).catch(e=>i(new Error(`[${e.name}]`)))})})}_setValuesFromUrlQuery(){if("undefined"==typeof window||!window.location.search)return;let e={},i=new URLSearchParams(window.location.search),t=i.get("code"),n=i.get("error"),a=i.get("error_description"),o=i.get("state");if(n)return e.error=n,a&&(e.error_description=a),e;t&&(e.code=t,o&&(e.state=o));var r,l,s=window.location;return"replaceState"in history?history.replaceState("",document.title,s.pathname):(r=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,s.pathname),document.body.scrollTop=r,document.body.scrollLeft=l),e}loginCodeAuthorizationGrant(e,i,t,n){return this.clientId=e,this.clientSecret=i,new Promise((a,o)=>{if("undefined"==typeof window){var r=Buffer.from(e+":"+i).toString("base64"),l=this._formAuthRequest(r,{grant_type:"authorization_code",code:t,redirect_uri:n});l.proxy=this.proxy;var s={grant_type:"authorization_code",code:t,redirect_uri:n};this._handleCodeAuthorizationResponse(l,s,a,o)}else o(new Error("The Code Authorization grant is not supported in a browser."))})}refreshCodeAuthorizationGrant(e,i,t){return new Promise((n,a)=>{if("undefined"==typeof window){var o=Buffer.from(e+":"+i).toString("base64"),r=this._formAuthRequest(o,{grant_type:"refresh_token",refresh_token:t});r.proxy=this.proxy;var l={grant_type:"refresh_token",refresh_token:t};this._handleCodeAuthorizationResponse(r,l,n,a)}else a(new Error("The Code Authorization grant is not supported in a browser."))})}_handleCodeAuthorizationResponse(e,i,t,n){var a=this.config.getConfUrl("login",`https://login.${this.config.environment}`);e.then(n=>{this.config.logger.log("trace",n.status,"POST",`${a}/oauth/token`,e.headers,n.headers,i,void 0),this.config.logger.log("debug",n.status,"POST",`${a}/oauth/token`,e.headers,void 0,i,void 0);var o=n.data.access_token,r=n.data.refresh_token;this.setAccessToken(o),this.authData.refreshToken=r,this.authData.tokenExpiryTime=(new Date).getTime()+1e3*n.data.expires_in,this.authData.tokenExpiryTimeString=new Date(this.authData.tokenExpiryTime).toUTCString(),t(this.authData)}).catch(t=>{t.response&&this.config.logger.log("error",t.response.status,"POST",`${a}/oauth/token`,e.headers,t.response.headers,i,t.response.data),n(t)})}_formAuthRequest(e,i){var t=this.config.getConfUrl("login",`https://login.${this.config.environment}`),n=new h(`${t}/oauth/token`,"POST",{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},null,r.default.stringify(i),this.timeout);return this.getHttpClient().request(n)}_handleExpiredAccessToken(){return new Promise((e,i)=>{"undefined"==typeof window?this.refreshInProgress?this._sleep(this.config.refresh_token_wait_max).then(()=>{this.refreshInProgress?i(new Error(`Token refresh took longer than ${this.config.refresh_token_wait_max} seconds`)):e()}):(this.refreshInProgress=!0,this.refreshCodeAuthorizationGrant(this.clientId,this.clientSecret,this.authData.refreshToken).then(()=>{this.refreshInProgress=!1,e()}).catch(e=>{this.refreshInProgress=!1,i(e)})):i(new Error("This method is not supported in a browser."))})}_sleep(e){return new Promise(i=>setTimeout(i,e))}_testTokenAccess(){return new Promise((e,i)=>{this._loadSettings(),this.authentications["PureCloud OAuth"].accessToken?this.callApi("/api/v2/tokens/me","GET",null,null,null,null,null,["PureCloud OAuth"],["application/json"],["application/json"]).then(()=>{e()}).catch(e=>{this._saveSettings({accessToken:void 0}),i(e)}):i(new Error("Token is not set"))})}_setValuesFromUrlHash(){if("undefined"==typeof window||!window.location.hash)return;const e=new RegExp("^#*(.+?)=(.+?)$","i");let i={};if(window.location.hash.split("&").forEach(t=>{const n=e.exec(t);n&&(i[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){let e={};i.state&&(e.state=i.state),i.expires_in&&(e.tokenExpiryTime=(new Date).getTime()+1e3*parseInt(i.expires_in.replace(/\+/g,"%20")),e.tokenExpiryTimeString=new Date(e.tokenExpiryTime).toUTCString()),e.accessToken=i.access_token.replace(/\+/g,"%20");var t,n,a=window.location;"replaceState"in history?history.replaceState("",document.title,a.pathname+a.search):(t=document.body.scrollTop,n=document.body.scrollLeft,a.hash="",document.body.scrollTop=t,document.body.scrollLeft=n),this._saveSettings(e)}}setAccessToken(e){this._saveSettings({accessToken:e})}setStorageKey(e){this.storageKey=e,this.setAccessToken(this.authentications["PureCloud OAuth"].accessToken)}logout(e){this.hasLocalStorage&&this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0});var i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var t=this._buildAuthUrl("logout",i);window.location.replace(t)}_buildAuthUrl(e,i){i||(i={});var t=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce((e,t)=>i[t]?`${e}&${t}=${i[t]}`:e,`${t}/${e}?`)}paramToString(e){return e?e instanceof Date?e.toJSON():e instanceof Boolean?e.toString().toLowerCase():e.toString():""}serialize(e){var i={};for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(i[encodeURIComponent(t)]=Array.isArray(e[t])?e[t].join(","):this.paramToString(e[t]));return i}addHeaders(e,...i){return e=e?Object.assign(e,...i):Object.assign(...i)}buildUrl(e,i){e.match(/^\//)||(e=`/${e}`);var t=this.config.getConfUrl("api",this.config.basePath)+e;return t=t.replace(/\{([\w-]+)\}/g,(e,t)=>{var n;return n=i.hasOwnProperty(t)?this.paramToString(i[t]):e,encodeURIComponent(n)})}isJsonMime(e){return Boolean(e&&e.match(/^application\/json(;.*)?$/i))}jsonPreferredMime(e){for(var i=0;i{var t=this.authentications[i];switch(t.type){case"basic":(t.username||t.password)&&(e.auth={username:t.username||"",password:t.password||""});break;case"apiKey":if(t.apiKey){var n={};t.apiKeyPrefix?n[t.name]=`${t.apiKeyPrefix} ${t.apiKey}`:n[t.name]=t.apiKey,"header"===t.in?e.headers=this.addHeaders(e.headers,n):e.setParams(this.serialize(n))}break;case"oauth2":t.accessToken&&(e.headers=this.addHeaders(e.headers,{Authorization:`Bearer ${t.accessToken}`}));break;default:throw new Error(`Unknown authentication type: ${t.type}`)}})}setProxyAgent(e){this.proxyAgent=e,this.getHttpClient().setHttpsAgent(this.proxyAgent)}callApi(e,i,t,n,a,o,r,l,s,p){return new Promise((u,d)=>{!function c(g){var m=g.buildUrl(e,t);var w=new h(m,i,null,g.serialize(n),null,g.timeout);g.applyAuthToRequest(w,l);const v=g.defaultHeaders;const C=g.normalizeParams(a);w.headers=g.addHeaders(w.headers,v,C);var I=g.jsonPreferredMime(s);I?w.headers["Content-Type"]=I:w.headers["Content-Type"]||(w.headers["Content-Type"]="application/json");if("application/x-www-form-urlencoded"===I)w.setData(g.normalizeParams(o));else if("multipart/form-data"==I){var f=g.normalizeParams(o);for(var A in f)if(f.hasOwnProperty(A)){var b=new FormData;b.set(A,f[A]),w.setData(b)}}else r&&w.setData(r);var j=g.jsonPreferredMime(p);j&&(w.headers.Accept=j);const P=g.getHttpClient();P.request(w).then(e=>{var t=!0===g.returnExtended?{status:e.status,statusText:e.statusText,headers:e.headers,body:e.data,text:e.text,error:null}:e.data?e.data:e.text;g.config.logger.log("trace",e.status,i,m,w.headers,e.headers,r,void 0),g.config.logger.log("debug",e.status,i,m,w.headers,void 0,r,void 0),u(t)}).catch(e=>{var t=e;e.response&&401==e.response.status&&g.config.refresh_access_token&&g.authData.refreshToken&&""!==g.authData.refreshToken?g._handleExpiredAccessToken().then(()=>{c(g)}).catch(e=>{d(e)}):e.response&&(g.config.logger.log("error",e.response.status,i,m,w.headers,e.response.headers,r,e.response.data),t=!0===g.returnExtended?{status:e.response.status,statusText:e.response.statusText,headers:e.response.headers,body:e.response.data,text:e.response.text,error:e}:e.response.data?e.response.data:e.response.text),d(t)})}(this)})}}class v{constructor(e){this.apiClient=e||w.instance}deleteAssistant(e){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","DELETE",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAssistantQueue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling deleteAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","DELETE",{assistantId:e,queueId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAssistantQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling deleteAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","DELETE",{assistantId:e},{queueIds:i.queueIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistant(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","GET",{assistantId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantQueue(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling getAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","GET",{assistantId:e,queueId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","GET",{assistantId:e},{before:i.before,after:i.after,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistants(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAssistantsQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/assistants/queues","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,queueIds:e.queueIds,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAssistant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling patchAssistant';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAssistant';return this.apiClient.callApi("/api/v2/assistants/{assistantId}","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchAssistantQueues(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling patchAssistantQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAssistantQueues';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues","PATCH",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAssistants(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAssistants';return this.apiClient.callApi("/api/v2/assistants","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAssistantQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling putAssistantQueue';if(void 0===i||null===i)throw'Missing the required parameter "queueId" when calling putAssistantQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putAssistantQueue';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/queues/{queueId}","PUT",{assistantId:e,queueId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class C{constructor(e){this.apiClient=e||w.instance}getAssistantCopilot(e){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling getAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","GET",{assistantId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putAssistantCopilot(e,i){if(void 0===e||null===e)throw'Missing the required parameter "assistantId" when calling putAssistantCopilot';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAssistantCopilot';return this.apiClient.callApi("/api/v2/assistants/{assistantId}/copilot","PUT",{assistantId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class I{constructor(e){this.apiClient=e||w.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class f{constructor(e){this.apiClient=e||w.instance}deleteAlertingAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling deleteAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","DELETE",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingInteractionstatsAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling deleteAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","DELETE",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingInteractionstatsRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAlertingRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingAlert(e){if(void 0===e||null===e)throw'Missing the required parameter "alertId" when calling getAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","GET",{alertId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingAlertsActive(){return this.apiClient.callApi("/api/v2/alerting/alerts/active","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling getAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","GET",{alertId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlerts(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsAlertsUnread(){return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/unread","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsRule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","GET",{ruleId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingInteractionstatsRules(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/interactionstats/rules","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAlertingRule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling patchAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PATCH",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingAlertsBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAlertingAlertsBulk';return this.apiClient.callApi("/api/v2/alerting/alerts/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchAlertingRulesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAlertingRulesBulk';return this.apiClient.callApi("/api/v2/alerting/rules/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingAlertsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/alerts/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingInteractionstatsRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingInteractionstatsRules';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingRules';return this.apiClient.callApi("/api/v2/alerting/rules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRulesBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAlertingRulesBulkRemove';return this.apiClient.callApi("/api/v2/alerting/rules/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAlertingRulesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/alerting/rules/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingAlert(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling putAlertingAlert';return this.apiClient.callApi("/api/v2/alerting/alerts/{alertId}","PUT",{alertId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingInteractionstatsAlert(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "alertId" when calling putAlertingInteractionstatsAlert';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingInteractionstatsAlert';return this.apiClient.callApi("/api/v2/alerting/interactionstats/alerts/{alertId}","PUT",{alertId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingInteractionstatsRule(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling putAlertingInteractionstatsRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingInteractionstatsRule';return this.apiClient.callApi("/api/v2/alerting/interactionstats/rules/{ruleId}","PUT",{ruleId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAlertingRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling putAlertingRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAlertingRule';return this.apiClient.callApi("/api/v2/alerting/rules/{ruleId}","PUT",{ruleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class A{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsActionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsActionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsAgentcopilotsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsAgentcopilotsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowDivisionsReportingturns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowDivisionsReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/divisions/reportingturns","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowReportingturns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowReportingturns';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/reportingturns","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,actionId:i.actionId,sessionId:i.sessionId,language:i.language,askActionResults:i.askActionResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotflowSessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botFlowId" when calling getAnalyticsBotflowSessions';return this.apiClient.callApi("/api/v2/analytics/botflows/{botFlowId}/sessions","GET",{botFlowId:e},{after:i.after,pageSize:i.pageSize,interval:i.interval,botResultCategories:i.botResultCategories,endLanguage:i.endLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsBotsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsBotsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsDataretentionSettings(){return this.apiClient.callApi("/api/v2/analytics/dataretention/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowexecutionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowexecutionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowexecutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsKnowledgeAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsKnowledgeAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsKnowledgeAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingDashboardsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getAnalyticsReportingDashboardsUser';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingDashboardsUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users","GET",{},{sortBy:e.sortBy,pageNumber:e.pageNumber,pageSize:e.pageSize,id:this.apiClient.buildCollectionParam(e.id,"multi"),state:e.state,deletedOnly:e.deletedOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingExports(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/exports","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingExportsMetadata(){return this.apiClient.callApi("/api/v2/analytics/reporting/exports/metadata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettings(){return this.apiClient.callApi("/api/v2/analytics/reporting/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettingsDashboardsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';if(void 0===i||null===i)throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","GET",{},{name:t.name,dashboardType:e,dashboardAccessFilter:i,sortBy:t.sortBy,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSettingsUserDashboards(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getAnalyticsReportingSettingsUserDashboards';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/users/{userId}/dashboards","GET",{userId:e},{sortBy:i.sortBy,pageNumber:i.pageNumber,pageSize:i.pageSize,publicOnly:i.publicOnly,favoriteOnly:i.favoriteOnly,deletedOnly:i.deletedOnly,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsResolutionsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsResolutionsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsResolutionsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTaskmanagementAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTaskmanagementAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTaskmanagementAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTranscriptsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsTranscriptsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsTranscriptsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAnalyticsReportingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAnalyticsReportingSettings';return this.apiClient.callApi("/api/v2/analytics/reporting/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsActionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsActionsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/actions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsAgentcopilotsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsAgentcopilotsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/agentcopilots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsBotsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsBotsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsBotsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/bots/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationDetailsProperties(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsTranscriptsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/transcripts/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowexecutionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowexecutionsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowexecutionsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flowexecutions/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsKnowledgeAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsKnowledgeAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsKnowledgeAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/knowledge/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsQueuesObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRatelimitsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/ratelimits/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingDashboardsUsersBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingDashboardsUsersBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/dashboards/users/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingExports(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingExports';return this.apiClient.callApi("/api/v2/analytics/reporting/exports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSettingsDashboardsBulkRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsBulkRemove';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/bulk/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSettingsDashboardsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSettingsDashboardsQuery';return this.apiClient.callApi("/api/v2/analytics/reporting/settings/dashboards/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsResolutionsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsResolutionsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/resolutions/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTaskmanagementAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTaskmanagementAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTaskmanagementAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/taskmanagement/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTranscriptsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTranscriptsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTranscriptsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/transcripts/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAnalyticsDataretentionSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';return this.apiClient.callApi("/api/v2/analytics/dataretention/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class b{constructor(e){this.apiClient=e||w.instance}deleteArchitectEmergencygroup(e){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling deleteArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","DELETE",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammar(e){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","DELETE",{grammarId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguageFilesDtmf(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesDtmf';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectGrammarLanguageFilesVoice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling deleteArchitectGrammarLanguageFilesVoice';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","DELETE",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectIvr(e){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling deleteArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","DELETE",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPrompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","DELETE",{promptId:e},{allResources:i.allResources},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPromptResourceAudio(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectPromptResourceAudio';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectPromptResourceAudio';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}/audio","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectPrompts(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling deleteArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","DELETE",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSchedulegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling deleteArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","DELETE",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteArchitectSystempromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling deleteArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","DELETE",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlow(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling deleteFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowInstancesSettingsLoglevels(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling deleteFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","DELETE",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlows(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteFlows';return this.apiClient.callApi("/api/v2/flows","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsDatatable(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","DELETE",{datatableId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsDatatableRow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling deleteFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling deleteFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","DELETE",{datatableId:e,rowId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsInstancesSettingsLoglevelsDefault(){return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteFlowsMilestone(e){if(void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling deleteFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","DELETE",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytracking(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "name" when calling getArchitectDependencytracking';return this.apiClient.callApi("/api/v2/architect/dependencytracking","GET",{},{pageNumber:i.pageNumber,pageSize:i.pageSize,name:e,objectType:this.apiClient.buildCollectionParam(i.objectType,"multi"),consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingBuild(){return this.apiClient.callApi("/api/v2/architect/dependencytracking/build","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingConsumedresources(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumedresources';if(void 0===i||null===i)throw'Missing the required parameter "version" when calling getArchitectDependencytrackingConsumedresources';if(void 0===t||null===t)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumedresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumedresources","GET",{},{id:e,version:i,objectType:t,resourceType:this.apiClient.buildCollectionParam(n.resourceType,"multi"),pageNumber:n.pageNumber,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingConsumingresources(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingConsumingresources';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling getArchitectDependencytrackingConsumingresources';return this.apiClient.callApi("/api/v2/architect/dependencytracking/consumingresources","GET",{},{id:e,objectType:i,resourceType:this.apiClient.buildCollectionParam(t.resourceType,"multi"),version:t.version,pageNumber:t.pageNumber,pageSize:t.pageSize,flowFilter:t.flowFilter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingDeletedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/deletedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),flowFilter:e.flowFilter,consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingObject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "id" when calling getArchitectDependencytrackingObject';return this.apiClient.callApi("/api/v2/architect/dependencytracking/object","GET",{},{id:e,version:i.version,objectType:i.objectType,consumedResources:i.consumedResources,consumingResources:i.consumingResources,consumedResourceType:this.apiClient.buildCollectionParam(i.consumedResourceType,"multi"),consumingResourceType:this.apiClient.buildCollectionParam(i.consumingResourceType,"multi"),consumedResourceRequest:i.consumedResourceRequest},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingType(e){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getArchitectDependencytrackingType';return this.apiClient.callApi("/api/v2/architect/dependencytracking/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/types","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectDependencytrackingUpdatedresourceconsumers(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/dependencytracking/updatedresourceconsumers","GET",{},{name:e.name,objectType:this.apiClient.buildCollectionParam(e.objectType,"multi"),consumedResources:e.consumedResources,consumedResourceType:this.apiClient.buildCollectionParam(e.consumedResourceType,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroup(e){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling getArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","GET",{emergencyGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectEmergencygroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/emergencygroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammar(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling getArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","GET",{grammarId:e},{includeFileUrls:i.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammarLanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling getArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","GET",{grammarId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectGrammars(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/grammars","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeFileUrls:e.includeFileUrls},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvr(e){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling getArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","GET",{ivrId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvrs(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,dnis:e.dnis,scheduleGroup:e.scheduleGroup},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectIvrsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/ivrs/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPrompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","GET",{promptId:e},{includeMediaUris:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getArchitectPromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPromptResources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","GET",{promptId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectPrompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/prompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:this.apiClient.buildCollectionParam(e.name,"multi"),description:e.description,nameOrDescription:e.nameOrDescription,sortBy:e.sortBy,sortOrder:e.sortOrder,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling getArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","GET",{scheduleGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,scheduleIds:e.scheduleIds,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulegroupsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedulegroups/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSchedulesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/schedules/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystemprompt(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystemprompt';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}","GET",{promptId:e},{includeMediaUris:i.includeMediaUris,includeResources:i.includeResources,language:this.apiClient.buildCollectionParam(i.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getArchitectSystempromptHistoryHistoryId';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history/{historyId}","GET",{promptId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptResource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","GET",{promptId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystempromptResources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "promptId" when calling getArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","GET",{promptId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getArchitectSystemprompts(e){return e=e||{},this.apiClient.callApi("/api/v2/architect/systemprompts","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,includeMediaUris:e.includeMediaUris,includeResources:e.includeResources,language:this.apiClient.buildCollectionParam(e.language,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlow(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowHistoryHistoryId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowHistoryHistoryId';if(void 0===i||null===i)throw'Missing the required parameter "historyId" when calling getFlowHistoryHistoryId';return this.apiClient.callApi("/api/v2/flows/{flowId}/history/{historyId}","GET",{flowId:e,historyId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,sortOrder:t.sortOrder,sortBy:t.sortBy,action:this.apiClient.buildCollectionParam(t.action,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowInstancesSettingsLoglevels(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","GET",{flowId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowLatestconfiguration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowLatestconfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/latestconfiguration","GET",{flowId:e},{deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersion';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}","GET",{flowId:e,versionId:i},{deleted:t.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionConfiguration(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionConfiguration';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionConfiguration';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/configuration","GET",{flowId:e,versionId:i},{deleted:t.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionHealth(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/health","GET",{flowId:e,versionId:i},{language:t.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionIntentHealth(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionIntentHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionIntentHealth';if(void 0===t||null===t)throw'Missing the required parameter "intentId" when calling getFlowVersionIntentHealth';if(void 0===n||null===n)throw'Missing the required parameter "language" when calling getFlowVersionIntentHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/health","GET",{flowId:e,versionId:i,intentId:t},{language:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersionIntentUtteranceHealth(e,i,t,n,a){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===t||null===t)throw'Missing the required parameter "intentId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===n||null===n)throw'Missing the required parameter "utteranceId" when calling getFlowVersionIntentUtteranceHealth';if(void 0===a||null===a)throw'Missing the required parameter "language" when calling getFlowVersionIntentUtteranceHealth';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions/{versionId}/intents/{intentId}/utterances/{utteranceId}/health","GET",{flowId:e,versionId:i,intentId:t,utteranceId:n},{language:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling getFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","GET",{flowId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,deleted:i.deleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlows(e){return e=e||{},this.apiClient.callApi("/api/v2/flows","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,publishVersionId:e.publishVersionId,editableBy:e.editableBy,lockedBy:e.lockedBy,lockedByClientId:e.lockedByClientId,secure:e.secure,deleted:e.deleted,includeSchemas:e.includeSchemas,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatable(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","GET",{datatableId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling getFlowsDatatableExportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs/{exportJobId}","GET",{datatableId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling getFlowsDatatableImportJob';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs/{importJobId}","GET",{datatableId:e,importJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableImportJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","GET",{datatableId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableRow(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling getFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","GET",{datatableId:e,rowId:i},{showbrief:t.showbrief},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatableRows(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","GET",{datatableId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,showbrief:i.showbrief,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatables(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatablesDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling getFlowsDatatablesDivisionview';return this.apiClient.callApi("/api/v2/flows/datatables/divisionviews/{datatableId}","GET",{datatableId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDatatablesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/datatables/divisionviews","GET",{},{expand:e.expand,pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/divisionviews","GET",{},{type:this.apiClient.buildCollectionParam(e.type,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,publishVersionId:e.publishVersionId,publishedAfter:e.publishedAfter,publishedBefore:e.publishedBefore,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeSchemas:e.includeSchemas},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsExecution(e){if(void 0===e||null===e)throw'Missing the required parameter "flowExecutionId" when calling getFlowsExecution';return this.apiClient.callApi("/api/v2/flows/executions/{flowExecutionId}","GET",{flowExecutionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstance(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "instanceId" when calling getFlowsInstance';return this.apiClient.callApi("/api/v2/flows/instances/{instanceId}","GET",{instanceId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getFlowsInstancesJob';return this.apiClient.callApi("/api/v2/flows/instances/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesQuerycapabilities(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/querycapabilities","GET",{},{expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsExecutiondata(){return this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevels(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevelsCharacteristics(){return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/characteristics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsInstancesSettingsLoglevelsDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsJob(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getFlowsJob';return this.apiClient.callApi("/api/v2/flows/jobs/{jobId}","GET",{jobId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestone(e){if(void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling getFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","GET",{milestoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsMilestonesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "flowOutcomeId" when calling getFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","GET",{flowOutcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,description:e.description,nameOrDescription:e.nameOrDescription,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFlowsOutcomesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchArchitectGrammar(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling patchArchitectGrammar';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}","PATCH",{grammarId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchArchitectGrammarLanguage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling patchArchitectGrammarLanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchArchitectGrammarLanguage';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}","PATCH",{grammarId:e,languageCode:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchFlowsInstancesSettingsExecutiondata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchFlowsInstancesSettingsExecutiondata';return this.apiClient.callApi("/api/v2/flows/instances/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectDependencytrackingBuild(){return this.apiClient.callApi("/api/v2/architect/dependencytracking/build","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectEmergencygroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectEmergencygroups';return this.apiClient.callApi("/api/v2/architect/emergencygroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguageFilesDtmf(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesDtmf';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesDtmf';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesDtmf';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/dtmf","POST",{grammarId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguageFilesVoice(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguageFilesVoice';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postArchitectGrammarLanguageFilesVoice';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguageFilesVoice';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages/{languageCode}/files/voice","POST",{grammarId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammarLanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "grammarId" when calling postArchitectGrammarLanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectGrammarLanguages';return this.apiClient.callApi("/api/v2/architect/grammars/{grammarId}/languages","POST",{grammarId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectGrammars(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectGrammars';return this.apiClient.callApi("/api/v2/architect/grammars","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectIvrs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectIvrs';return this.apiClient.callApi("/api/v2/architect/ivrs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPromptHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectPromptHistory';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPromptResources(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectPromptResources';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectPromptResources';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectPrompts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectPrompts';return this.apiClient.callApi("/api/v2/architect/prompts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSchedulegroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectSchedulegroups';return this.apiClient.callApi("/api/v2/architect/schedulegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postArchitectSchedules';return this.apiClient.callApi("/api/v2/architect/schedules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSystempromptHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectSystempromptHistory';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/history","POST",{promptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postArchitectSystempromptResources(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling postArchitectSystempromptResources';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postArchitectSystempromptResources';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources","POST",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowHistory(e){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowHistory';return this.apiClient.callApi("/api/v2/flows/{flowId}/history","POST",{flowId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowInstancesSettingsLoglevels(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowInstancesSettingsLoglevels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","POST",{flowId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowVersions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling postFlowVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowVersions';return this.apiClient.callApi("/api/v2/flows/{flowId}/versions","POST",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlows(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlows';return this.apiClient.callApi("/api/v2/flows","POST",{},{language:i.language},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsCheckin(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckin';return this.apiClient.callApi("/api/v2/flows/actions/checkin","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsCheckout(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsCheckout';return this.apiClient.callApi("/api/v2/flows/actions/checkout","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsDeactivate(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsDeactivate';return this.apiClient.callApi("/api/v2/flows/actions/deactivate","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsPublish(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsPublish';return this.apiClient.callApi("/api/v2/flows/actions/publish","POST",{},{flow:e,version:i.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsRevert(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsRevert';return this.apiClient.callApi("/api/v2/flows/actions/revert","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsActionsUnlock(e){if(void 0===e||null===e)throw'Missing the required parameter "flow" when calling postFlowsActionsUnlock';return this.apiClient.callApi("/api/v2/flows/actions/unlock","POST",{},{flow:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableExportJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableExportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/export/jobs","POST",{datatableId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableImportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableImportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postFlowsDatatableImportJobs';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/import/jobs","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatableRows(e,i){if(void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling postFlowsDatatableRows';if(void 0===i||null===i)throw'Missing the required parameter "dataTableRow" when calling postFlowsDatatableRows';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows","POST",{datatableId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsDatatables(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsDatatables';return this.apiClient.callApi("/api/v2/flows/datatables","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsExecutions(e){if(void 0===e||null===e)throw'Missing the required parameter "flowLaunchRequest" when calling postFlowsExecutions';return this.apiClient.callApi("/api/v2/flows/executions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsInstancesJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsInstancesJobs';return this.apiClient.callApi("/api/v2/flows/instances/jobs","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsInstancesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postFlowsInstancesQuery';return this.apiClient.callApi("/api/v2/flows/instances/query","POST",{},{indexOnly:i.indexOnly,pageSize:i.pageSize},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsJobs(){return this.apiClient.callApi("/api/v2/flows/jobs","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsMilestones(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/milestones","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postFlowsOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/flows/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectEmergencygroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "emergencyGroupId" when calling putArchitectEmergencygroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectEmergencygroup';return this.apiClient.callApi("/api/v2/architect/emergencygroups/{emergencyGroupId}","PUT",{emergencyGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectIvr(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ivrId" when calling putArchitectIvr';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectIvr';return this.apiClient.callApi("/api/v2/architect/ivrs/{ivrId}","PUT",{ivrId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectPrompt(e,i){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectPrompt';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectPrompt';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}","PUT",{promptId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectPromptResource(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectPromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling putArchitectPromptResource';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putArchitectPromptResource';return this.apiClient.callApi("/api/v2/architect/prompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling putArchitectSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectSchedule';return this.apiClient.callApi("/api/v2/architect/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSchedulegroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleGroupId" when calling putArchitectSchedulegroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putArchitectSchedulegroup';return this.apiClient.callApi("/api/v2/architect/schedulegroups/{scheduleGroupId}","PUT",{scheduleGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putArchitectSystempromptResource(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "promptId" when calling putArchitectSystempromptResource';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling putArchitectSystempromptResource';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putArchitectSystempromptResource';return this.apiClient.callApi("/api/v2/architect/systemprompts/{promptId}/resources/{languageCode}","PUT",{promptId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putFlow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "flowId" when calling putFlow';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlow';return this.apiClient.callApi("/api/v2/flows/{flowId}","PUT",{flowId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowInstancesSettingsLoglevels(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "flowId" when calling putFlowInstancesSettingsLoglevels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlowInstancesSettingsLoglevels';return this.apiClient.callApi("/api/v2/flows/{flowId}/instances/settings/loglevels","PUT",{flowId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsDatatable(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling putFlowsDatatable';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFlowsDatatable';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}","PUT",{datatableId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsDatatableRow(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "datatableId" when calling putFlowsDatatableRow';if(void 0===i||null===i)throw'Missing the required parameter "rowId" when calling putFlowsDatatableRow';return this.apiClient.callApi("/api/v2/flows/datatables/{datatableId}/rows/{rowId}","PUT",{datatableId:e,rowId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsInstancesSettingsLoglevelsDefault(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling putFlowsInstancesSettingsLoglevelsDefault';return this.apiClient.callApi("/api/v2/flows/instances/settings/loglevels/default","PUT",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsMilestone(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "milestoneId" when calling putFlowsMilestone';return this.apiClient.callApi("/api/v2/flows/milestones/{milestoneId}","PUT",{milestoneId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putFlowsOutcome(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';return this.apiClient.callApi("/api/v2/flows/outcomes/{flowOutcomeId}","PUT",{flowOutcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class j{constructor(e){this.apiClient=e||w.instance}getAuditsQueryRealtimeServicemapping(){return this.apiClient.callApi("/api/v2/audits/query/realtime/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryServicemapping(){return this.apiClient.callApi("/api/v2/audits/query/servicemapping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryTransactionId(e){if(void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuditsQueryTransactionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),allowRedirect:i.allowRedirect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQuery';return this.apiClient.callApi("/api/v2/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQueryRealtime(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQueryRealtime';return this.apiClient.callApi("/api/v2/audits/query/realtime","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuditsQueryRealtimeRelated(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';return this.apiClient.callApi("/api/v2/audits/query/realtime/related","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class P{constructor(e){this.apiClient=e||w.instance}deleteAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationRole(e){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling deleteAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","DELETE",{roleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationSubjectDivisionRole(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:i,roleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionGrants(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivisionGrants';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/grants","GET",{divisionId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsHome(){return this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsLimit(){return this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedSubjectId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(void 0===i||null===i)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationPermissions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/permissions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,queryType:e.queryType,query:e.query},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationProducts(){return this.apiClient.callApi("/api/v2/authorization/products","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRole(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","GET",{roleId:e},{userCount:i.userCount,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleComparedefaultRightRoleId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "leftRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';if(void 0===i||null===i)throw'Missing the required parameter "rightRoleId" when calling getAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","GET",{leftRoleId:e,rightRoleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleSubjectgrants(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRoleSubjectgrants';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/subjectgrants","GET",{roleId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoleUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling getAuthorizationRoleUsers';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users","GET",{roleId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRoles(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),defaultRoleId:this.apiClient.buildCollectionParam(e.defaultRoleId,"multi"),userCount:e.userCount,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationRolesSettings(){return this.apiClient.callApi("/api/v2/authorization/roles/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSettings(){return this.apiClient.callApi("/api/v2/authorization/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsRolecounts(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/rolecounts","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchAuthorizationRole(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling patchAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PATCH",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchAuthorizationSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchAuthorizationSettings';return this.apiClient.callApi("/api/v2/authorization/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionObject(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionRestore(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRole(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "roleId" when calling postAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","POST",{roleId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRoleComparedefaultRightRoleId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "leftRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(void 0===i||null===i)throw'Missing the required parameter "rightRoleId" when calling postAuthorizationRoleComparedefaultRightRoleId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationRoleComparedefaultRightRoleId';return this.apiClient.callApi("/api/v2/authorization/roles/{leftRoleId}/comparedefault/{rightRoleId}","POST",{leftRoleId:e,rightRoleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationRoles';return this.apiClient.callApi("/api/v2/authorization/roles","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationRolesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/roles/default","POST",{},{force:e.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkadd(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkremove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkreplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectDivisionRole(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:i,roleId:t},{subjectType:n.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationDivision(e,i){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRole(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRole';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRole';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRoleUsersAdd(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersAdd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersAdd';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/add","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRoleUsersRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roleId" when calling putAuthorizationRoleUsersRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationRoleUsersRemove';return this.apiClient.callApi("/api/v2/authorization/roles/{roleId}/users/remove","PUT",{roleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRolesDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAuthorizationRolesDefault';return this.apiClient.callApi("/api/v2/authorization/roles/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationRolesSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putAuthorizationRolesSettings';return this.apiClient.callApi("/api/v2/authorization/roles/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling putUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class y{constructor(e){this.apiClient=e||w.instance}getBillingReportsBillableusage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "startDate" when calling getBillingReportsBillableusage';if(void 0===i||null===i)throw'Missing the required parameter "endDate" when calling getBillingReportsBillableusage';return this.apiClient.callApi("/api/v2/billing/reports/billableusage","GET",{},{startDate:e,endDate:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getBillingTrusteebillingoverviewTrustorOrgId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';return this.apiClient.callApi("/api/v2/billing/trusteebillingoverview/{trustorOrgId}","GET",{trustorOrgId:e},{billingPeriodIndex:i.billingPeriodIndex},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class O{constructor(e){this.apiClient=e||w.instance}getCarrierservicesIntegrationsEmergencylocationsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumber" when calling getCarrierservicesIntegrationsEmergencylocationsMe';return this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","GET",{},{phoneNumber:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postCarrierservicesIntegrationsEmergencylocationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/carrierservices/integrations/emergencylocations/me","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class M{constructor(e){this.apiClient=e||w.instance}deleteChatsRoomMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling deleteChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","DELETE",{roomJid:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsRoomMessagesPin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomMessagesPin';if(void 0===i||null===i)throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsRoomMessagesPin';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins/{pinnedMessageId}","DELETE",{roomJid:e,pinnedMessageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling deleteChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling deleteChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","DELETE",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsUserMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling deleteChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","DELETE",{userId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteChatsUserMessagesPin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteChatsUserMessagesPin';if(void 0===i||null===i)throw'Missing the required parameter "pinnedMessageId" when calling deleteChatsUserMessagesPin';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins/{pinnedMessageId}","DELETE",{userId:e,pinnedMessageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getChatsMessage';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}","GET",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoom(e){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","GET",{roomJid:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageIds" when calling getChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageIds}","GET",{roomJid:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","GET",{roomJid:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantJid" when calling getChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{participantJid}","GET",{roomJid:e,participantJid:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsRoomParticipants(e){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling getChatsRoomParticipants';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants","GET",{roomJid:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsSettings(){return this.apiClient.callApi("/api/v2/chats/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsThreadMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "threadId" when calling getChatsThreadMessages';return this.apiClient.callApi("/api/v2/chats/threads/{threadId}/messages","GET",{threadId:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUser';return this.apiClient.callApi("/api/v2/chats/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageIds" when calling getChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageIds}","GET",{userId:e,messageIds:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","GET",{userId:e},{limit:i.limit,before:i.before,after:i.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUserSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getChatsUsersMeSettings(){return this.apiClient.callApi("/api/v2/chats/users/me/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsRoom(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling patchChatsRoom';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchChatsRoom';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}","PATCH",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsRoomMessage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling patchChatsRoomMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling patchChatsRoomMessage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchChatsRoomMessage';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/{messageId}","PATCH",{roomJid:e,messageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUserMessage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchChatsUserMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling patchChatsUserMessage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchChatsUserMessage';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/{messageId}","PATCH",{userId:e,messageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUserSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchChatsUserSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchChatsUserSettings';return this.apiClient.callApi("/api/v2/chats/users/{userId}/settings","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchChatsUsersMeSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchChatsUsersMeSettings';return this.apiClient.callApi("/api/v2/chats/users/me/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsRoomMessages';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomMessagesPins(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomMessagesPins';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsRoomMessagesPins';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/messages/pins","POST",{roomJid:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRoomParticipant(e,i){if(void 0===e||null===e)throw'Missing the required parameter "roomJid" when calling postChatsRoomParticipant';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postChatsRoomParticipant';return this.apiClient.callApi("/api/v2/chats/rooms/{roomJid}/participants/{userId}","POST",{roomJid:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsRooms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postChatsRooms';return this.apiClient.callApi("/api/v2/chats/rooms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsUserMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postChatsUserMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsUserMessages';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postChatsUserMessagesPins(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postChatsUserMessagesPins';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postChatsUserMessagesPins';return this.apiClient.callApi("/api/v2/chats/users/{userId}/messages/pins","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putChatsMessageReactions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling putChatsMessageReactions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putChatsMessageReactions';return this.apiClient.callApi("/api/v2/chats/messages/{messageId}/reactions","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putChatsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putChatsSettings';return this.apiClient.callApi("/api/v2/chats/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class T{constructor(e){this.apiClient=e||w.instance}deleteCoachingAppointment(e){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","DELETE",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteCoachingAppointmentAnnotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling deleteCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling deleteCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","DELETE",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointment(e){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","GET",{appointmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentAnnotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling getCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","GET",{appointmentId:e,annotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentAnnotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","GET",{appointmentId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentStatuses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling getCoachingAppointmentStatuses';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/statuses","GET",{appointmentId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userIds" when calling getCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),interval:i.interval,pageNumber:i.pageNumber,pageSize:i.pageSize,statuses:this.apiClient.buildCollectionParam(i.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(i.facilitatorIds,"multi"),sortOrder:i.sortOrder,relationships:this.apiClient.buildCollectionParam(i.relationships,"multi"),completionInterval:i.completionInterval,overdue:i.overdue,intervalCondition:i.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingAppointmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/appointments/me","GET",{},{interval:e.interval,pageNumber:e.pageNumber,pageSize:e.pageSize,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),facilitatorIds:this.apiClient.buildCollectionParam(e.facilitatorIds,"multi"),sortOrder:e.sortOrder,relationships:this.apiClient.buildCollectionParam(e.relationships,"multi"),completionInterval:e.completionInterval,overdue:e.overdue,intervalCondition:e.intervalCondition},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingNotification(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "notificationId" when calling getCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","GET",{notificationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getCoachingNotifications(e){return e=e||{},this.apiClient.callApi("/api/v2/coaching/notifications","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingAppointment';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointmentAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "annotationId" when calling patchCoachingAppointmentAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchCoachingAppointmentAnnotation';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations/{annotationId}","PATCH",{appointmentId:e,annotationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingAppointmentStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling patchCoachingAppointmentStatus';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingAppointmentStatus';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/status","PATCH",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchCoachingNotification(e,i){if(void 0===e||null===e)throw'Missing the required parameter "notificationId" when calling patchCoachingNotification';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchCoachingNotification';return this.apiClient.callApi("/api/v2/coaching/notifications/{notificationId}","PATCH",{notificationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentAnnotations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postCoachingAppointmentAnnotations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/annotations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentConversations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "appointmentId" when calling postCoachingAppointmentConversations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postCoachingAppointmentConversations';return this.apiClient.callApi("/api/v2/coaching/appointments/{appointmentId}/conversations","POST",{appointmentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingAppointments';return this.apiClient.callApi("/api/v2/coaching/appointments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingAppointmentsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingAppointmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/coaching/appointments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postCoachingScheduleslotsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';return this.apiClient.callApi("/api/v2/coaching/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class q{constructor(e){this.apiClient=e||w.instance}deleteContentmanagementDocument(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","DELETE",{documentId:e},{override:i.override},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementShare(e){if(void 0===e||null===e)throw'Missing the required parameter "shareId" when calling deleteContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","DELETE",{shareId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling deleteContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","DELETE",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspace(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","DELETE",{workspaceId:e},{moveChildrenToWorkspaceId:i.moveChildrenToWorkspaceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspaceMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","DELETE",{workspaceId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteContentmanagementWorkspaceTagvalue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling deleteContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling deleteContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","DELETE",{workspaceId:e,tagId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocument(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","GET",{documentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocumentContent(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","GET",{documentId:e},{disposition:i.disposition,contentType:i.contentType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","GET",{},{workspaceId:e,name:i.name,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queryPhrase" when calling getContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,queryPhrase:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSecurityprofile(e){if(void 0===e||null===e)throw'Missing the required parameter "securityProfileId" when calling getContentmanagementSecurityprofile';return this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles/{securityProfileId}","GET",{securityProfileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSecurityprofiles(){return this.apiClient.callApi("/api/v2/contentmanagement/securityprofiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementShare(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "shareId" when calling getContentmanagementShare';return this.apiClient.callApi("/api/v2/contentmanagement/shares/{shareId}","GET",{shareId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementSharedSharedId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sharedId" when calling getContentmanagementSharedSharedId';return this.apiClient.callApi("/api/v2/contentmanagement/shared/{sharedId}","GET",{sharedId:e},{disposition:i.disposition,contentType:i.contentType,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementShares(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/shares","GET",{},{entityId:e.entityId,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/status","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling getContentmanagementStatusStatusId';return this.apiClient.callApi("/api/v2/contentmanagement/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementUsage(){return this.apiClient.callApi("/api/v2/contentmanagement/usage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspace(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/documents","GET",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceMember(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling getContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","GET",{workspaceId:e,memberId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceMembers';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members","GET",{workspaceId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceTagvalue(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling getContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","GET",{workspaceId:e,tagId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaceTagvalues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling getContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","GET",{workspaceId:e},{value:i.value,pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getContentmanagementWorkspaces(e){return e=e||{},this.apiClient.callApi("/api/v2/contentmanagement/workspaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,access:this.apiClient.buildCollectionParam(e.access,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocument(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postContentmanagementDocument';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementDocument';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}","POST",{documentId:e},{expand:t.expand,override:t.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocumentContent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postContentmanagementDocumentContent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementDocumentContent';return this.apiClient.callApi("/api/v2/contentmanagement/documents/{documentId}/content","POST",{documentId:e},{override:t.override},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementDocuments';return this.apiClient.callApi("/api/v2/contentmanagement/documents","POST",{},{copySource:i.copySource,moveSource:i.moveSource,override:i.override},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementQuery';return this.apiClient.callApi("/api/v2/contentmanagement/query","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementShares(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementShares';return this.apiClient.callApi("/api/v2/contentmanagement/shares","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaceTagvalues(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvalues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvalues';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues","POST",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaceTagvaluesQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling postContentmanagementWorkspaceTagvaluesQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaceTagvaluesQuery';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/query","POST",{workspaceId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postContentmanagementWorkspaces(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postContentmanagementWorkspaces';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspace(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putContentmanagementWorkspace';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}","PUT",{workspaceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspaceMember(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling putContentmanagementWorkspaceMember';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceMember';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/members/{memberId}","PUT",{workspaceId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putContentmanagementWorkspaceTagvalue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workspaceId" when calling putContentmanagementWorkspaceTagvalue';if(void 0===i||null===i)throw'Missing the required parameter "tagId" when calling putContentmanagementWorkspaceTagvalue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';return this.apiClient.callApi("/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}","PUT",{workspaceId:e,tagId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class S{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationParticipantCode(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantCode';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationParticipantCode';if(void 0===t||null===t)throw'Missing the required parameter "addCommunicationCode" when calling deleteConversationParticipantCode';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/codes/{addCommunicationCode}","DELETE",{conversationId:e,participantId:i,addCommunicationCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationParticipantFlaggedreason(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationParticipantFlaggedreason';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsCallParticipantConsult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling deleteConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","DELETE",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsEmailMessagesDraftAttachment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationsEmailMessagesDraftAttachment';if(void 0===i||null===i)throw'Missing the required parameter "attachmentId" when calling deleteConversationsEmailMessagesDraftAttachment';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/{attachmentId}","DELETE",{conversationId:e,attachmentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagesCachedmediaCachedMediaItemId(e){if(void 0===e||null===e)throw'Missing the required parameter "cachedMediaItemId" when calling deleteConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","DELETE",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsFacebookIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsInstagramIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsOpenIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingIntegrationsWhatsappIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling deleteConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteConversationsMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling deleteConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getAnalyticsConversationDetails';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetails(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/conversations/details","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJob';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsConversationsDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsConversationsDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantSecureivrsession(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsession';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsession';if(void 0===t||null===t)throw'Missing the required parameter "secureSessionId" when calling getConversationParticipantSecureivrsession';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions/{secureSessionId}","GET",{conversationId:e,participantId:i,secureSessionId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantSecureivrsessions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantSecureivrsessions';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSecureattributes(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSuggestion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSuggestion';if(void 0===i||null===i)throw'Missing the required parameter "suggestionId" when calling getConversationSuggestion';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}","GET",{conversationId:e,suggestionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSuggestions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions","GET",{conversationId:e},{before:i.before,after:i.after,pageSize:i.pageSize,type:i.type,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationSummaries(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationSummaries';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations","GET",{},{communicationType:e.communicationType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCall(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallback(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbackParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCallbackParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCallbackParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallbacks(){return this.apiClient.callApi("/api/v2/conversations/callbacks","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCalls(){return this.apiClient.callApi("/api/v2/conversations/calls","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallsHistory(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/calls/history","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,interval:e.interval,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCallsMaximumconferenceparties(){return this.apiClient.callApi("/api/v2/conversations/calls/maximumconferenceparties","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChat(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsChatMessage';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChatParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsChatParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsChatParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsChats(){return this.apiClient.callApi("/api/v2/conversations/chats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesession(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessionParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsCobrowsesessionParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsCobrowsesessions(){return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmail(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsEmailMessage';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessages(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailMessagesDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsEmailParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmailSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsEmailSettings';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/settings","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsEmails(){return this.apiClient.callApi("/api/v2/conversations/emails","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsKeyconfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "keyconfigurationsId" when calling getConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","GET",{keyconfigurationsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsKeyconfigurations(){return this.apiClient.callApi("/api/v2/conversations/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageCommunicationMessagesMediaMediaId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';if(void 0===t||null===t)throw'Missing the required parameter "mediaId" when calling getConversationsMessageCommunicationMessagesMediaMediaId';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media/{mediaId}","GET",{conversationId:e,communicationId:i,mediaId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageDetails(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getConversationsMessageDetails';return this.apiClient.callApi("/api/v2/conversations/messages/{messageId}/details","GET",{messageId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageMessage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getConversationsMessageMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{useNormalizedMessage:t.useNormalizedMessage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantWrapup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapup","GET",{conversationId:e,participantId:i},{provisional:t.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessageParticipantWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsMessageParticipantWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsMessageParticipantWrapupcodes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/wrapupcodes","GET",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessages(){return this.apiClient.callApi("/api/v2/conversations/messages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagesCachedmedia(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,url:e.url},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagesCachedmediaCachedMediaItemId(e){if(void 0===e||null===e)throw'Missing the required parameter "cachedMediaItemId" when calling getConversationsMessagesCachedmediaCachedMediaItemId';return this.apiClient.callApi("/api/v2/conversations/messages/cachedmedia/{cachedMediaItemId}","GET",{cachedMediaItemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingFacebookApp(){return this.apiClient.callApi("/api/v2/conversations/messaging/facebook/app","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingFacebookPermissions(){return this.apiClient.callApi("/api/v2/conversations/messaging/facebook/permissions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsFacebook(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsInstagram(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsOpen(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsWhatsapp(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,"supportedContent.id":e.supportedContentId,"messagingSetting.id":e.messagingSettingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","GET",{integrationId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling getConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontentDefault(){return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling getConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsMessagingThreadingtimeline(){return this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsScreenshareParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsScreenshareParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsSettings(){return this.apiClient.callApi("/api/v2/conversations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsSocialParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsSocialParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsSocialParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideoDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "conferenceId" when calling getConversationsVideoDetails';return this.apiClient.callApi("/api/v2/conversations/videos/{conferenceId}/details","GET",{conferenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideoParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationsVideoParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling getConversationsVideoParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling getConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","GET",{conversationId:e,participantId:i,communicationId:t},{provisional:n.provisional},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationsVideosMeeting(e){if(void 0===e||null===e)throw'Missing the required parameter "meetingId" when calling getConversationsVideosMeeting';return this.apiClient.callApi("/api/v2/conversations/videos/meetings/{meetingId}","GET",{meetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationParticipant';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationSecureattributes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationSecureattributes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationUtilizationlabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationUtilizationlabel';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationUtilizationlabel';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/utilizationlabel","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsAftercallworkConversationIdParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsAftercallworkConversationIdParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/aftercallwork/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCall(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCall';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipant';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCallParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallParticipantConsult(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallParticipantConsult';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCallback';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipant';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbackParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCallbackParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCallbackParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCallbacks(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChat(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChat';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsChat';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsChatParticipant';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsChatParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsChatParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsChatParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsChatParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsChatParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesession(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesession';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesession';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipant(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipant';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipantAttributes(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsCobrowsesessionParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsCobrowsesessionParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsCobrowsesessionParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmail(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmail';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsEmail';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailMessagesDraft(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PATCH",{conversationId:e},{autoFill:i.autoFill,discard:i.discard},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipant(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipant';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipant';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantAttributes(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantAttributes';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsEmailParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsEmailParticipantParkingstate(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsEmailParticipantParkingstate';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsEmailParticipantParkingstate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchConversationsEmailParticipantParkingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/parkingstate","PATCH",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipant(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipant';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipant';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipantAttributes(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantAttributes';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantAttributes';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/attributes","PATCH",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessageParticipantCommunication(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantCommunication';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantCommunication';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling patchConversationsMessageParticipantCommunication';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchConversationsMessageParticipantCommunication';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}","PATCH",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsFacebookIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsFacebookIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsInstagramIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsInstagramIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsOpenIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsOpenIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappEmbeddedsignupIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingIntegrationsWhatsappIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsWhatsappIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/{integrationId}","PATCH",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling patchConversationsMessagingSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingSetting';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsMessagingSupportedcontentSupportedContentId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling patchConversationsMessagingSupportedcontentSupportedContentId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchConversationsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchConversationsSettings';return this.apiClient.callApi("/api/v2/conversations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationDetailsProperties(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postAnalyticsConversationDetailsProperties';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAnalyticsConversationDetailsProperties';return this.apiClient.callApi("/api/v2/analytics/conversations/{conversationId}/details/properties","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/conversations/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationAssign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationAssign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationAssign';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/assign","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationBarge(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationBarge';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/barge","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationCobrowse(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationCobrowse';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/cobrowse","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationDisconnect';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/disconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantCallbacks(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantCallbacks';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantCallbacks';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/callbacks","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantDigits(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantDigits';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantDigits';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/digits","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceAgent';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceAgent';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/agent","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceExternal(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceExternal';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceExternal';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceExternal';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/external","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantReplaceQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantReplaceQueue';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantReplaceQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationParticipantReplaceQueue';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/replace/queue","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationParticipantSecureivrsessions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationParticipantSecureivrsessions';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationParticipantSecureivrsessions';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSuggestionEngagement(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSuggestionEngagement';if(void 0===i||null===i)throw'Missing the required parameter "suggestionId" when calling postConversationSuggestionEngagement';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationSuggestionEngagement';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/{suggestionId}/engagement","POST",{conversationId:e,suggestionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSuggestionsFeedback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSuggestionsFeedback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationSuggestionsFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/suggestions/feedback","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationSummaryFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationSummaryFeedback';if(void 0===i||null===i)throw'Missing the required parameter "summaryId" when calling postConversationSummaryFeedback';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/summaries/{summaryId}/feedback","POST",{conversationId:e,summaryId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCall(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCall';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsCall';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantBarge(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantBarge';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantBarge';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/barge","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantCoach(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCoach';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCoach';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/coach","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCallParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsult(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsult';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsult';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsult';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultAgent';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultAgent';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/agent","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultExternal(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultExternal';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultExternal';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultExternal';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/external","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantConsultQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantConsultQueue';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantConsultQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantConsultQueue';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult/queue","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantMonitor(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantMonitor';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallParticipants(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallParticipants';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsCallParticipants';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbackParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCallbackParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbackParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCallbackParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCallbackParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsCallbackParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacks(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacks';return this.apiClient.callApi("/api/v2/conversations/callbacks","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacksBulkDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkDisconnect';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/disconnect","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCallbacksBulkUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCallbacksBulkUpdate';return this.apiClient.callApi("/api/v2/conversations/callbacks/bulk/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCalls(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsCalls';return this.apiClient.callApi("/api/v2/conversations/calls","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatCommunicationMessages(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationMessages';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsChatCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatCommunicationTyping(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatCommunicationTyping';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsChatCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsChatParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChatParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsChatParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsChatParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsChatParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsChats(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsChats';return this.apiClient.callApi("/api/v2/conversations/chats","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCobrowsesessionParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsCobrowsesessionParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsCobrowsesessionParticipantReplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsCobrowsesessionParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsCobrowsesessionParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailInboundmessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailInboundmessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailInboundmessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/inboundmessages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailMessages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailMessages';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailMessagesDraftAttachmentsCopy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailMessagesDraftAttachmentsCopy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsEmailMessagesDraftAttachmentsCopy';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy","POST",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsEmailParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailReconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/reconnect","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmails(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsEmails';return this.apiClient.callApi("/api/v2/conversations/emails","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsEmailsAgentless(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsEmailsAgentless';return this.apiClient.callApi("/api/v2/conversations/emails/agentless","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsFaxes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsFaxes';return this.apiClient.callApi("/api/v2/conversations/faxes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsKeyconfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurations';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsKeyconfigurationsValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationMessages(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessages';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationMessages';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages","POST",{conversationId:e,communicationId:i},{useNormalizedMessage:n.useNormalizedMessage},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationMessagesMedia(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationMessagesMedia';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationMessagesMedia';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/messages/media","POST",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageCommunicationTyping(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageCommunicationTyping';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling postConversationsMessageCommunicationTyping';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageCommunicationTyping';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/communications/{communicationId}/typing","POST",{conversationId:e,communicationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenEvent(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenEvent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenEvent';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/event","POST",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenMessage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenMessage';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/message","POST",{integrationId:e},{prefetchConversationId:t.prefetchConversationId},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageInboundOpenReceipt(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling postConversationsMessageInboundOpenReceipt';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postConversationsMessageInboundOpenReceipt';return this.apiClient.callApi("/api/v2/conversations/messages/{integrationId}/inbound/open/receipt","POST",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageMessagesBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageMessagesBulk';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/messages/bulk","POST",{conversationId:e},{useNormalizedMessage:i.useNormalizedMessage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsMessageParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantMonitor(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantMonitor';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantMonitor';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/monitor","POST",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessageParticipantReplace(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsMessageParticipantReplace';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsMessageParticipantReplace';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationsMessageParticipantReplace';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/participants/{participantId}/replace","POST",{conversationId:e,participantId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessages';return this.apiClient.callApi("/api/v2/conversations/messages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagesAgentless(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagesAgentless';return this.apiClient.callApi("/api/v2/conversations/messages/agentless","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagesInboundOpen(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagesInboundOpen';return this.apiClient.callApi("/api/v2/conversations/messages/inbound/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsFacebook(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsFacebook';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/facebook","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsInstagram(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsInstagram';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/instagram","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsOpen(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsOpen';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/open","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsWhatsapp(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsapp';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingIntegrationsWhatsappEmbeddedsignup(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsWhatsappEmbeddedsignup';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/whatsapp/embeddedsignup","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingSettings';return this.apiClient.callApi("/api/v2/conversations/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsMessagingSupportedcontent(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsParticipantsAttributesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsScreenshareParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsScreenshareParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsScreenshareParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsSocialParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsSocialParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsSocialParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsSocialParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsVideoParticipantCommunicationWrapup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationsVideoParticipantCommunicationWrapup';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling postConversationsVideoParticipantCommunicationWrapup';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling postConversationsVideoParticipantCommunicationWrapup';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup","POST",{conversationId:e,participantId:i,communicationId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsVideosMeetings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsVideosMeetings';return this.apiClient.callApi("/api/v2/conversations/videos/meetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationParticipantFlaggedreason(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationParticipantFlaggedreason';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling putConversationParticipantFlaggedreason';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/participants/{participantId}/flaggedreason","PUT",{conversationId:e,participantId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationSecureattributes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationSecureattributes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationSecureattributes';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/secureattributes","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationTags(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationTags';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationTags';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/tags","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallParticipantCommunicationUuidata(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===i||null===i)throw'Missing the required parameter "participantId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===t||null===t)throw'Missing the required parameter "communicationId" when calling putConversationsCallParticipantCommunicationUuidata';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling putConversationsCallParticipantCommunicationUuidata';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/participants/{participantId}/communications/{communicationId}/uuidata","PUT",{conversationId:e,participantId:i,communicationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCallRecordingstate';return this.apiClient.callApi("/api/v2/conversations/calls/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCallbackRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCallbackRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCallbackRecordingstate';return this.apiClient.callApi("/api/v2/conversations/callbacks/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsChatRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsChatRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsChatRecordingstate';return this.apiClient.callApi("/api/v2/conversations/chats/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsCobrowsesessionRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsCobrowsesessionRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsCobrowsesessionRecordingstate';return this.apiClient.callApi("/api/v2/conversations/cobrowsesessions/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsEmailMessagesDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsEmailMessagesDraft';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsEmailMessagesDraft';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/messages/draft","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsEmailRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsEmailRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsEmailRecordingstate';return this.apiClient.callApi("/api/v2/conversations/emails/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsKeyconfiguration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "keyconfigurationsId" when calling putConversationsKeyconfiguration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsKeyconfiguration';return this.apiClient.callApi("/api/v2/conversations/keyconfigurations/{keyconfigurationsId}","PUT",{keyconfigurationsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessageRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsMessageRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsMessageRecordingstate';return this.apiClient.callApi("/api/v2/conversations/messages/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingSettingsDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingSupportedcontentDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingSupportedcontentDefault';return this.apiClient.callApi("/api/v2/conversations/messaging/supportedcontent/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsMessagingThreadingtimeline(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putConversationsMessagingThreadingtimeline';return this.apiClient.callApi("/api/v2/conversations/messaging/threadingtimeline","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsScreenshareRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsScreenshareRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsScreenshareRecordingstate';return this.apiClient.callApi("/api/v2/conversations/screenshares/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsSocialRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsSocialRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsSocialRecordingstate';return this.apiClient.callApi("/api/v2/conversations/socials/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationsVideoRecordingstate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationsVideoRecordingstate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';return this.apiClient.callApi("/api/v2/conversations/videos/{conversationId}/recordingstate","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class k{constructor(e){this.apiClient=e||w.instance}getDataextensionsCoretype(e){if(void 0===e||null===e)throw'Missing the required parameter "coretypeName" when calling getDataextensionsCoretype';return this.apiClient.callApi("/api/v2/dataextensions/coretypes/{coretypeName}","GET",{coretypeName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataextensionsCoretypes(){return this.apiClient.callApi("/api/v2/dataextensions/coretypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataextensionsLimits(){return this.apiClient.callApi("/api/v2/dataextensions/limits","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class E{constructor(e){this.apiClient=e||w.instance}deleteDataprivacyMaskingrule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling deleteDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","DELETE",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataprivacyMaskingrule(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling getDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","GET",{ruleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDataprivacyMaskingrules(){return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchDataprivacyMaskingrule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "ruleId" when calling patchDataprivacyMaskingrule';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/{ruleId}","PATCH",{ruleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDataprivacyMaskingrules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrules';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDataprivacyMaskingrulesValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';return this.apiClient.callApi("/api/v2/dataprivacy/maskingrules/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class G{constructor(e){this.apiClient=e||w.instance}getDownload(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "downloadId" when calling getDownload';return this.apiClient.callApi("/api/v2/downloads/{downloadId}","GET",{downloadId:e},{contentDisposition:i.contentDisposition,issueRedirect:i.issueRedirect,redirectToAuth:i.redirectToAuth},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class U{constructor(e){this.apiClient=e||w.instance}getEmailsSettings(){return this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class D{constructor(e){this.apiClient=e||w.instance}deleteEmployeeengagementCelebration(e){if(void 0===e||null===e)throw'Missing the required parameter "celebrationId" when calling deleteEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","DELETE",{celebrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeengagementCelebrations(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeengagement/celebrations","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeengagementRecognition(e){if(void 0===e||null===e)throw'Missing the required parameter "recognitionId" when calling getEmployeeengagementRecognition';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions/{recognitionId}","GET",{recognitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmployeeengagementCelebration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "celebrationId" when calling patchEmployeeengagementCelebration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchEmployeeengagementCelebration';return this.apiClient.callApi("/api/v2/employeeengagement/celebrations/{celebrationId}","PATCH",{celebrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeengagementRecognitions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';return this.apiClient.callApi("/api/v2/employeeengagement/recognitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class R{constructor(e){this.apiClient=e||w.instance}postEventsConversations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsConversations';return this.apiClient.callApi("/api/v2/events/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postEventsUsersPresence(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsUsersPresence';return this.apiClient.callApi("/api/v2/events/users/presence","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postEventsUsersRoutingstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';return this.apiClient.callApi("/api/v2/events/users/routingstatus","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class x{constructor(e){this.apiClient=e||w.instance}deleteExternalcontactsContact(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","DELETE",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsContactNote(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling deleteExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling deleteExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","DELETE",{contactId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsContactsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling deleteExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsExternalsource(e){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling deleteExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","DELETE",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsImportCsvSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsImportSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling deleteExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","DELETE",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganization(e){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganizationNote(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling deleteExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","DELETE",{externalOrganizationId:e,noteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsOrganizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling deleteExternalcontactsOrganizationTrustor';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor","DELETE",{externalOrganizationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteExternalcontactsRelationship(e){if(void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling deleteExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","DELETE",{relationshipId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContact(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactIdentifiers(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","GET",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactNote(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling getExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","GET",{contactId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactNotes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","GET",{contactId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactUnresolved(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/unresolved","GET",{contactId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/contacts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getExternalcontactsContactsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsContactsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactsSchemas(){return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsExternalsource(e){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling getExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","GET",{externalSourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsExternalsources(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/externalsources","GET",{},{cursor:e.cursor,limit:e.limit,name:e.name,active:e.active},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","GET",{},{after:e.after,pageSize:e.pageSize,externalSettingsId:e.externalSettingsId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvUploadDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadDetails';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/details","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportCsvUploadPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getExternalcontactsImportCsvUploadPreview';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads/{uploadId}/preview","GET",{uploadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,jobStatus:e.jobStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling getExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","GET",{settingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsImportSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/import/settings","GET",{},{after:e.after,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganization(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","GET",{externalOrganizationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),includeTrustors:i.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationContacts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationContacts';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/contacts","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,q:i.q,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationNote(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling getExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","GET",{externalOrganizationId:e,noteId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationNotes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationRelationships(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling getExternalcontactsOrganizationRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships","GET",{externalOrganizationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/organizations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,q:e.q,trustorId:this.apiClient.buildCollectionParam(e.trustorId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includeTrustors:e.includeTrustors},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getExternalcontactsOrganizationsSchemaVersion';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getExternalcontactsOrganizationsSchemaVersions';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsOrganizationsSchemas(){return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsRelationship(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling getExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","GET",{relationshipId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsReversewhitepageslookup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "lookupVal" when calling getExternalcontactsReversewhitepageslookup';return this.apiClient.callApi("/api/v2/externalcontacts/reversewhitepageslookup","GET",{},{lookupVal:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanContacts(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/contacts","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanNotes(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/notes","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanOrganizations(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/organizations","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsScanRelationships(e){return e=e||{},this.apiClient.callApi("/api/v2/externalcontacts/scan/relationships","GET",{},{limit:e.limit,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchExternalcontactsContactIdentifiers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling patchExternalcontactsContactIdentifiers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchExternalcontactsContactIdentifiers';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/identifiers","PATCH",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContacts';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsUnresolved(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUnresolved';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/unresolved","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkContactsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkContactsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/contacts/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotes';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkNotesUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkNotesUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/notes/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkOrganizationsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkOrganizationsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/organizations/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationships(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsAdd';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsRemove(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsRemove';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/remove","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsBulkRelationshipsUpdate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsBulkRelationshipsUpdate';return this.apiClient.callApi("/api/v2/externalcontacts/bulk/relationships/update","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactNotes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling postExternalcontactsContactNotes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postExternalcontactsContactNotes';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes","POST",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactPromotion(e){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling postExternalcontactsContactPromotion';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/promotion","POST",{contactId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsContacts';return this.apiClient.callApi("/api/v2/externalcontacts/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsContactsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsContactsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsExternalsources(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsExternalsources';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsIdentifierlookup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportCsvUploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportCsvUploads';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportJobs';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsImportSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsImportSettings';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsMergeContacts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsMergeContacts';return this.apiClient.callApi("/api/v2/externalcontacts/merge/contacts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizationNotes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling postExternalcontactsOrganizationNotes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationNotes';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes","POST",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizations';return this.apiClient.callApi("/api/v2/externalcontacts/organizations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsOrganizationsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsOrganizationsSchemas';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postExternalcontactsRelationships(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postExternalcontactsRelationships';return this.apiClient.callApi("/api/v2/externalcontacts/relationships","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling putExternalcontactsContact';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsContact';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}","PUT",{contactId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContactNote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "contactId" when calling putExternalcontactsContactNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling putExternalcontactsContactNote';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putExternalcontactsContactNote';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}","PUT",{contactId:e,noteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsContactsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putExternalcontactsContactsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsContactsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsConversation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putExternalcontactsConversation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsConversation';return this.apiClient.callApi("/api/v2/externalcontacts/conversations/{conversationId}","PUT",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsExternalsource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalSourceId" when calling putExternalcontactsExternalsource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsExternalsource';return this.apiClient.callApi("/api/v2/externalcontacts/externalsources/{externalSourceId}","PUT",{externalSourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportCsvSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportCsvSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportCsvSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/csv/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling putExternalcontactsImportJob';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportJob';return this.apiClient.callApi("/api/v2/externalcontacts/import/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsImportSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "settingsId" when calling putExternalcontactsImportSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsImportSetting';return this.apiClient.callApi("/api/v2/externalcontacts/import/settings/{settingsId}","PUT",{settingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsOrganization';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}","PUT",{externalOrganizationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationNote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationNote';if(void 0===i||null===i)throw'Missing the required parameter "noteId" when calling putExternalcontactsOrganizationNote';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationNote';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}","PUT",{externalOrganizationId:e,noteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationTrustorTrustorId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "externalOrganizationId" when calling putExternalcontactsOrganizationTrustorTrustorId';if(void 0===i||null===i)throw'Missing the required parameter "trustorId" when calling putExternalcontactsOrganizationTrustorTrustorId';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/{externalOrganizationId}/trustor/{trustorId}","PUT",{externalOrganizationId:e,trustorId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsOrganizationsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putExternalcontactsOrganizationsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsOrganizationsSchema';return this.apiClient.callApi("/api/v2/externalcontacts/organizations/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putExternalcontactsRelationship(e,i){if(void 0===e||null===e)throw'Missing the required parameter "relationshipId" when calling putExternalcontactsRelationship';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';return this.apiClient.callApi("/api/v2/externalcontacts/relationships/{relationshipId}","PUT",{relationshipId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class W{constructor(e){this.apiClient=e||w.instance}deleteFaxDocument(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","DELETE",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocument(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocumentContent(e){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getFaxDocumentContent';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}/content","GET",{documentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxDocuments(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/documents","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxSettings(){return this.apiClient.callApi("/api/v2/fax/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFaxSummary(){return this.apiClient.callApi("/api/v2/fax/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putFaxDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling putFaxDocument';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putFaxDocument';return this.apiClient.callApi("/api/v2/fax/documents/{documentId}","PUT",{documentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putFaxSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/fax/settings","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class z{constructor(e){this.apiClient=e||w.instance}getAnalyticsFlowsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsFlowsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsFlowsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/flows/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/flows/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsFlowsObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/flows/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class B{constructor(e){this.apiClient=e||w.instance}deleteEmployeeperformanceExternalmetricsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling deleteEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","DELETE",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeperformanceExternalmetricsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling getEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","GET",{metricId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsights(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsights';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsights';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsights';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsights';if(void 0===a||null===a)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsights';return this.apiClient.callApi("/api/v2/gamification/insights","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,primaryPeriodStartWorkday:a,pageSize:o.pageSize,pageNumber:o.pageNumber,sortKey:o.sortKey,sortMetricId:o.sortMetricId,sortOrder:o.sortOrder,userIds:o.userIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsDetails(e,i,t,n,a){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsDetails';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsDetails';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsDetails';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsDetails';if(void 0===a||null===a)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsDetails';return this.apiClient.callApi("/api/v2/gamification/insights/details","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,primaryPeriodStartWorkday:a},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsGroupsTrends(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrends';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrends';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsGroupsTrendsAll(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsGroupsTrendsAll';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsGroupsTrendsAll';return this.apiClient.callApi("/api/v2/gamification/insights/groups/trends/all","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsMembers(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsMembers';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsMembers';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsMembers';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationInsightsMembers';return this.apiClient.callApi("/api/v2/gamification/insights/members","GET",{},{filterType:e,filterId:i,granularity:t,startWorkday:n},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsTrends(e,i,t,n,a,o,r){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationInsightsTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationInsightsTrends';if(void 0===t||null===t)throw'Missing the required parameter "granularity" when calling getGamificationInsightsTrends';if(void 0===n||null===n)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsTrends';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsTrends';return this.apiClient.callApi("/api/v2/gamification/insights/trends","GET",{},{filterType:e,filterId:i,granularity:t,comparativePeriodStartWorkday:n,comparativePeriodEndWorkday:a,primaryPeriodStartWorkday:o,primaryPeriodEndWorkday:r},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsUserDetails(e,i,t,n,a,o){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationInsightsUserDetails';if(void 0===i||null===i)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserDetails';if(void 0===t||null===t)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserDetails';if(void 0===n||null===n)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserDetails';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserDetails';if(void 0===o||null===o)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserDetails';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/details","GET",{userId:e},{filterType:i,filterId:t,granularity:n,comparativePeriodStartWorkday:a,primaryPeriodStartWorkday:o},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationInsightsUserTrends(e,i,t,n,a,o,r,l){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationInsightsUserTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterType" when calling getGamificationInsightsUserTrends';if(void 0===t||null===t)throw'Missing the required parameter "filterId" when calling getGamificationInsightsUserTrends';if(void 0===n||null===n)throw'Missing the required parameter "granularity" when calling getGamificationInsightsUserTrends';if(void 0===a||null===a)throw'Missing the required parameter "comparativePeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(void 0===o||null===o)throw'Missing the required parameter "comparativePeriodEndWorkday" when calling getGamificationInsightsUserTrends';if(void 0===r||null===r)throw'Missing the required parameter "primaryPeriodStartWorkday" when calling getGamificationInsightsUserTrends';if(void 0===l||null===l)throw'Missing the required parameter "primaryPeriodEndWorkday" when calling getGamificationInsightsUserTrends';return this.apiClient.callApi("/api/v2/gamification/insights/users/{userId}/trends","GET",{userId:e},{filterType:i,filterId:t,granularity:n,comparativePeriodStartWorkday:a,comparativePeriodEndWorkday:o,primaryPeriodStartWorkday:r,primaryPeriodEndWorkday:l},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboard(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboard';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboard';return this.apiClient.callApi("/api/v2/gamification/leaderboard","GET",{},{startWorkday:e,endWorkday:i,metricId:t.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardAll(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAll';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAll';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationLeaderboardAll';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationLeaderboardAll';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all","GET",{},{filterType:e,filterId:i,startWorkday:t,endWorkday:n,metricId:a.metricId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardAllBestpoints(e,i){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationLeaderboardAllBestpoints';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationLeaderboardAllBestpoints';return this.apiClient.callApi("/api/v2/gamification/leaderboard/all/bestpoints","GET",{},{filterType:e,filterId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationLeaderboardBestpoints(){return this.apiClient.callApi("/api/v2/gamification/leaderboard/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationMetricdefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "metricDefinitionId" when calling getGamificationMetricdefinition';return this.apiClient.callApi("/api/v2/gamification/metricdefinitions/{metricDefinitionId}","GET",{metricDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationMetricdefinitions(){return this.apiClient.callApi("/api/v2/gamification/metricdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfile(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMembers(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","GET",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetric(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetric';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","GET",{profileId:e,metricId:i},{workday:t.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetrics(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","GET",{profileId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),workday:i.workday,metricIds:i.metricIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfileMetricsObjectivedetails(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationProfileMetricsObjectivedetails';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/objectivedetails","GET",{profileId:e},{workday:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfiles(){return this.apiClient.callApi("/api/v2/gamification/profiles","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfilesUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationProfilesUser';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}","GET",{userId:e},{workday:i.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationProfilesUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/gamification/profiles/users/me","GET",{},{workday:e.workday},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecards(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecards';return this.apiClient.callApi("/api/v2/gamification/scorecards","GET",{},{workday:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsAttendance(e,i){if(void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsAttendance';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/attendance","GET",{},{startWorkday:e,endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsBestpoints(){return this.apiClient.callApi("/api/v2/gamification/scorecards/bestpoints","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsAlltime(e){if(void 0===e||null===e)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/alltime","GET",{},{endWorkday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsAverage(e){if(void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecardsPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/average","GET",{},{workday:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsPointsTrends(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsPointsTrends';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/points/trends","GET",{},{startWorkday:e,endWorkday:i,dayOfWeek:t.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricUserValuesTrends(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "userId" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';if(void 0===a||null===a)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/{userId}/values/trends","GET",{profileId:e,metricId:i,userId:t},{startWorkday:n,endWorkday:a,referenceWorkday:o.referenceWorkday,timeZone:o.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricUsersValuesTrends(e,i,t,n,a,o){if(o=o||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';if(void 0===a||null===a)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/users/values/trends","GET",{profileId:e,metricId:i},{filterType:t,filterId:o.filterId,startWorkday:n,endWorkday:a,referenceWorkday:o.referenceWorkday,timeZone:o.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsProfileMetricValuesTrends(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsProfileMetricValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/profiles/{profileId}/metrics/{metricId}/values/trends","GET",{profileId:e,metricId:i},{filterType:a.filterType,startWorkday:t,endWorkday:n,referenceWorkday:a.referenceWorkday,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUser';if(void 0===i||null===i)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUser';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}","GET",{userId:e},{workday:i,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserAttendance(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserAttendance';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserAttendance';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserAttendance';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/attendance","GET",{userId:e},{startWorkday:i,endWorkday:t},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserBestpoints(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserBestpoints';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/bestpoints","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserPointsAlltime(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsAlltime';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsAlltime';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/alltime","GET",{userId:e},{endWorkday:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserPointsTrends(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserPointsTrends';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserPointsTrends';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserPointsTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/points/trends","GET",{userId:e},{startWorkday:i,endWorkday:t,dayOfWeek:n.dayOfWeek},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUserValuesTrends(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getGamificationScorecardsUserValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUserValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUserValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/{userId}/values/trends","GET",{userId:e},{startWorkday:i,endWorkday:t,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersPointsAverage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersPointsAverage';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersPointsAverage';if(void 0===t||null===t)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersPointsAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/points/average","GET",{},{filterType:e,filterId:i,workday:t},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersValuesAverage(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesAverage';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesAverage';if(void 0===t||null===t)throw'Missing the required parameter "workday" when calling getGamificationScorecardsUsersValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/average","GET",{},{filterType:e,filterId:i,workday:t,timeZone:n.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsUsersValuesTrends(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "filterType" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "filterId" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===t||null===t)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsUsersValuesTrends';if(void 0===n||null===n)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsUsersValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/users/values/trends","GET",{},{filterType:e,filterId:i,startWorkday:t,endWorkday:n,timeZone:a.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsValuesAverage(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workday" when calling getGamificationScorecardsValuesAverage';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/average","GET",{},{workday:e,timeZone:i.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationScorecardsValuesTrends(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "startWorkday" when calling getGamificationScorecardsValuesTrends';if(void 0===i||null===i)throw'Missing the required parameter "endWorkday" when calling getGamificationScorecardsValuesTrends';return this.apiClient.callApi("/api/v2/gamification/scorecards/values/trends","GET",{},{filterType:t.filterType,referenceWorkday:t.referenceWorkday,startWorkday:e,endWorkday:i,timeZone:t.timeZone},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationStatus(){return this.apiClient.callApi("/api/v2/gamification/status","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "templateId" when calling getGamificationTemplate';return this.apiClient.callApi("/api/v2/gamification/templates/{templateId}","GET",{templateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGamificationTemplates(){return this.apiClient.callApi("/api/v2/gamification/templates","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmployeeperformanceExternalmetricsDefinition(e,i){if(void 0===e||null===e)throw'Missing the required parameter "metricId" when calling patchEmployeeperformanceExternalmetricsDefinition';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchEmployeeperformanceExternalmetricsDefinition';return this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions/{metricId}","PATCH",{metricId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeperformanceExternalmetricsData(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/data","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postEmployeeperformanceExternalmetricsDefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/employeeperformance/externalmetrics/definitions","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileActivate(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileActivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/activate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileDeactivate(e){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileDeactivate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/deactivate","POST",{profileId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMembers';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMembersValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMembersValidate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMembersValidate';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/members/validate","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMetricLink(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "sourceProfileId" when calling postGamificationProfileMetricLink';if(void 0===i||null===i)throw'Missing the required parameter "sourceMetricId" when calling postGamificationProfileMetricLink';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postGamificationProfileMetricLink';return this.apiClient.callApi("/api/v2/gamification/profiles/{sourceProfileId}/metrics/{sourceMetricId}/link","POST",{sourceProfileId:e,sourceMetricId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfileMetrics(e,i){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling postGamificationProfileMetrics';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfileMetrics';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics","POST",{profileId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfiles(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postGamificationProfiles';return this.apiClient.callApi("/api/v2/gamification/profiles","POST",{},{copyMetrics:i.copyMetrics},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfilesUserQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postGamificationProfilesUserQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGamificationProfilesUserQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/{userId}/query","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGamificationProfilesUsersMeQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGamificationProfilesUsersMeQuery';return this.apiClient.callApi("/api/v2/gamification/profiles/users/me/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "profileId" when calling putGamificationProfile';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}","PUT",{profileId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationProfileMetric(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "profileId" when calling putGamificationProfileMetric';if(void 0===i||null===i)throw'Missing the required parameter "metricId" when calling putGamificationProfileMetric';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putGamificationProfileMetric';return this.apiClient.callApi("/api/v2/gamification/profiles/{profileId}/metrics/{metricId}","PUT",{profileId:e,metricId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putGamificationStatus(e){if(void 0===e||null===e)throw'Missing the required parameter "status" when calling putGamificationStatus';return this.apiClient.callApi("/api/v2/gamification/status","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class L{constructor(e){this.apiClient=e||w.instance}getGdprRequest(e){if(void 0===e||null===e)throw'Missing the required parameter "requestId" when calling getGdprRequest';return this.apiClient.callApi("/api/v2/gdpr/requests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGdprRequests(e){return e=e||{},this.apiClient.callApi("/api/v2/gdpr/requests","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGdprSubjects(e,i){if(void 0===e||null===e)throw'Missing the required parameter "searchType" when calling getGdprSubjects';if(void 0===i||null===i)throw'Missing the required parameter "searchValue" when calling getGdprSubjects';return this.apiClient.callApi("/api/v2/gdpr/subjects","GET",{},{searchType:e,searchValue:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGdprRequests(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postGdprRequests';return this.apiClient.callApi("/api/v2/gdpr/requests","POST",{},{deleteConfirmed:i.deleteConfirmed},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class N{constructor(e){this.apiClient=e||w.instance}getGeolocationsSettings(){return this.apiClient.callApi("/api/v2/geolocations/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGeolocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchGeolocationsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchGeolocationsSettings';return this.apiClient.callApi("/api/v2/geolocations/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserGeolocation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class K{constructor(e){this.apiClient=e||w.instance}deleteGreeting(e){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling deleteGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","DELETE",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreeting(e){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling getGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","GET",{greetingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling getGreetingMedia';return this.apiClient.callApi("/api/v2/greetings/{greetingId}/media","GET",{greetingId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetings(e){return e=e||{},this.apiClient.callApi("/api/v2/greetings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGreetingsDefaults(){return this.apiClient.callApi("/api/v2/greetings/defaults","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupGreetings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGreetings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGreetings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGreetings';return this.apiClient.callApi("/api/v2/greetings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupGreetings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling postGroupGreetings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGroupGreetings';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserGreetings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserGreetings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserGreetings';return this.apiClient.callApi("/api/v2/users/{userId}/greetings","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putGreeting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "greetingId" when calling putGreeting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGreeting';return this.apiClient.callApi("/api/v2/greetings/{greetingId}","PUT",{greetingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putGreetingsDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putGreetingsDefaults';return this.apiClient.callApi("/api/v2/greetings/defaults","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGroupGreetingsDefaults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroupGreetingsDefaults';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGroupGreetingsDefaults';return this.apiClient.callApi("/api/v2/groups/{groupId}/greetings/defaults","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserGreetingsDefaults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserGreetingsDefaults';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';return this.apiClient.callApi("/api/v2/users/{userId}/greetings/defaults","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class J{constructor(e){this.apiClient=e||w.instance}deleteGroup(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteGroupDynamicsettings(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","DELETE",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteGroupMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling deleteGroupMembers';if(void 0===i||null===i)throw'Missing the required parameter "ids" when calling deleteGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","DELETE",{groupId:e},{ids:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroup(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupDynamicsettings(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupIndividuals(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupIndividuals';return this.apiClient.callApi("/api/v2/groups/{groupId}/individuals","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getGroupProfile';return this.apiClient.callApi("/api/v2/groups/{groupId}/profile","GET",{groupId:e},{fields:i.fields},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProfilesGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/groups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling postGroupMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postGroupMembers';return this.apiClient.callApi("/api/v2/groups/{groupId}/members","POST",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postGroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroups';return this.apiClient.callApi("/api/v2/groups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsDynamicsettingsPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsDynamicsettingsPreview';return this.apiClient.callApi("/api/v2/groups/dynamicsettings/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putGroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroup';return this.apiClient.callApi("/api/v2/groups/{groupId}","PUT",{groupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putGroupDynamicsettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putGroupDynamicsettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putGroupDynamicsettings';return this.apiClient.callApi("/api/v2/groups/{groupId}/dynamicsettings","PUT",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class V{constructor(e){this.apiClient=e||w.instance}deleteIdentityprovider(e){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling deleteIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","DELETE",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersAdfs(){return this.apiClient.callApi("/api/v2/identityproviders/adfs","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersCic(){return this.apiClient.callApi("/api/v2/identityproviders/cic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersGeneric(){return this.apiClient.callApi("/api/v2/identityproviders/generic","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersGsuite(){return this.apiClient.callApi("/api/v2/identityproviders/gsuite","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersIdentitynow(){return this.apiClient.callApi("/api/v2/identityproviders/identitynow","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersOkta(){return this.apiClient.callApi("/api/v2/identityproviders/okta","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersOnelogin(){return this.apiClient.callApi("/api/v2/identityproviders/onelogin","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPing(){return this.apiClient.callApi("/api/v2/identityproviders/ping","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPurecloud(){return this.apiClient.callApi("/api/v2/identityproviders/purecloud","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersPureengage(){return this.apiClient.callApi("/api/v2/identityproviders/pureengage","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIdentityprovidersSalesforce(){return this.apiClient.callApi("/api/v2/identityproviders/salesforce","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovider(e){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling getIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","GET",{providerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityproviders(){return this.apiClient.callApi("/api/v2/identityproviders","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersAdfs(){return this.apiClient.callApi("/api/v2/identityproviders/adfs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersCic(){return this.apiClient.callApi("/api/v2/identityproviders/cic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersGeneric(){return this.apiClient.callApi("/api/v2/identityproviders/generic","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersGsuite(){return this.apiClient.callApi("/api/v2/identityproviders/gsuite","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersIdentitynow(){return this.apiClient.callApi("/api/v2/identityproviders/identitynow","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersOkta(){return this.apiClient.callApi("/api/v2/identityproviders/okta","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersOnelogin(){return this.apiClient.callApi("/api/v2/identityproviders/onelogin","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPing(){return this.apiClient.callApi("/api/v2/identityproviders/ping","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPurecloud(){return this.apiClient.callApi("/api/v2/identityproviders/purecloud","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersPureengage(){return this.apiClient.callApi("/api/v2/identityproviders/pureengage","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIdentityprovidersSalesforce(){return this.apiClient.callApi("/api/v2/identityproviders/salesforce","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIdentityproviders(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIdentityproviders';return this.apiClient.callApi("/api/v2/identityproviders","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovider(e,i){if(void 0===e||null===e)throw'Missing the required parameter "providerId" when calling putIdentityprovider';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIdentityprovider';return this.apiClient.callApi("/api/v2/identityproviders/{providerId}","PUT",{providerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersAdfs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersAdfs';return this.apiClient.callApi("/api/v2/identityproviders/adfs","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersCic(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersCic';return this.apiClient.callApi("/api/v2/identityproviders/cic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersGeneric(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersGeneric';return this.apiClient.callApi("/api/v2/identityproviders/generic","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersGsuite(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersGsuite';return this.apiClient.callApi("/api/v2/identityproviders/gsuite","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersIdentitynow(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersIdentitynow';return this.apiClient.callApi("/api/v2/identityproviders/identitynow","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersOkta(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersOkta';return this.apiClient.callApi("/api/v2/identityproviders/okta","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersOnelogin(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersOnelogin';return this.apiClient.callApi("/api/v2/identityproviders/onelogin","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPing(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPing';return this.apiClient.callApi("/api/v2/identityproviders/ping","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPurecloud(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPurecloud';return this.apiClient.callApi("/api/v2/identityproviders/purecloud","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersPureengage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersPureengage';return this.apiClient.callApi("/api/v2/identityproviders/pureengage","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIdentityprovidersSalesforce(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';return this.apiClient.callApi("/api/v2/identityproviders/salesforce","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class F{constructor(e){this.apiClient=e||w.instance}getInfrastructureascodeAccelerator(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "acceleratorId" when calling getInfrastructureascodeAccelerator';return this.apiClient.callApi("/api/v2/infrastructureascode/accelerators/{acceleratorId}","GET",{acceleratorId:e},{preferredLanguage:i.preferredLanguage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeAccelerators(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/accelerators","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,description:e.description,origin:e.origin,type:e.type,classification:e.classification,tags:e.tags},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeJob(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getInfrastructureascodeJob';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs/{jobId}","GET",{jobId:e},{details:i.details},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getInfrastructureascodeJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/infrastructureascode/jobs","GET",{},{maxResults:e.maxResults,includeErrors:e.includeErrors,sortBy:e.sortBy,sortOrder:e.sortOrder,acceleratorId:e.acceleratorId,submittedBy:e.submittedBy,status:e.status},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postInfrastructureascodeJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';return this.apiClient.callApi("/api/v2/infrastructureascode/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Q{constructor(e){this.apiClient=e||w.instance}deleteIntegration(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","DELETE",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsAction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling deleteIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsActionDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling deleteIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","DELETE",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteIntegrationsCredential(e){if(void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling deleteIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","DELETE",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","GET",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationConfigCurrent(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsAction(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","GET",{actionId:e},{expand:i.expand,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraft(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","GET",{actionId:e},{expand:i.expand,includeConfig:i.includeConfig},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftFunction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftSchema(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftSchema';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:t.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionDraftTemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftTemplate';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionDraftTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"])}getIntegrationsActionDraftValidation(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionDraftValidation';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/validation","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionFunction(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/function","GET",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionSchema(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionSchema';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionSchema';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/schemas/{fileName}","GET",{actionId:e,fileName:i},{flatten:t.flatten},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionTemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling getIntegrationsActionTemplate';if(void 0===i||null===i)throw'Missing the required parameter "fileName" when calling getIntegrationsActionTemplate';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/templates/{fileName}","GET",{actionId:e,fileName:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["text/plain"])}getIntegrationsActions(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,secure:e.secure},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCertificates(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/certificates","GET",{},{status:e.status,type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsCertificatesTruststore(){return this.apiClient.callApi("/api/v2/integrations/actions/certificates/truststore","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsDrafts(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/actions/drafts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,nextPage:e.nextPage,previousPage:e.previousPage,sortBy:e.sortBy,sortOrder:e.sortOrder,category:e.category,name:e.name,ids:e.ids,secure:e.secure,includeAuthActions:e.includeAuthActions},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsActionsFunctionsRuntimes(){return this.apiClient.callApi("/api/v2/integrations/actions/functions/runtimes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBot(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBot';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}","GET",{integrationId:e,botId:i},{version:t.version},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBotVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsBotconnectorIntegrationIdBotVersions';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/{botId}/versions","GET",{integrationId:e,botId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBots(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsBotconnectorIntegrationIdBotsSummaries(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorIntegrationIdBotsSummaries';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots/summaries","GET",{integrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsClientappsUnifiedcommunications(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/clientapps/unifiedcommunications","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredential(e){if(void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling getIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","GET",{credentialId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsCredentialsTypes(){return this.apiClient.callApi("/api/v2/integrations/credentials/types","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechAudioconnector(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/audioconnector","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechAudioconnectorIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getIntegrationsSpeechAudioconnectorIntegrationId';return this.apiClient.callApi("/api/v2/integrations/speech/audioconnector/{integrationId}","GET",{integrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowAgent(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflow/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowcxAgent(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getIntegrationsSpeechDialogflowcxAgent';return this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents/{agentId}","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechDialogflowcxAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/dialogflowcx/agents","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBotAlias(e){if(void 0===e||null===e)throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexBotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBotBotIdAliases(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexBotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lex/bot/{botId}/aliases","GET",{botId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexBots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lex/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2BotAlias(e){if(void 0===e||null===e)throw'Missing the required parameter "aliasId" when calling getIntegrationsSpeechLexv2BotAlias';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/alias/{aliasId}","GET",{aliasId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2BotBotIdAliases(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechLexv2BotBotIdAliases';return this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bot/{botId}/aliases","GET",{botId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,status:i.status,name:i.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechLexv2Bots(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/lexv2/bots","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBot(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBot';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}","GET",{nuanceIntegrationId:e,botId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi"),targetChannel:t.targetChannel},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}","GET",{nuanceIntegrationId:e,botId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,botId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBots(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots","GET",{nuanceIntegrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJob';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}","GET",{nuanceIntegrationId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobResults';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs/{jobId}/results","GET",{nuanceIntegrationId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechSttEngine(e){if(void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechSttEngine';return this.apiClient.callApi("/api/v2/integrations/speech/stt/engines/{engineId}","GET",{engineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechSttEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/stt/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngine(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngine';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}","GET",{engineId:e},{includeVoices:i.includeVoices},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngineVoice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoice';if(void 0===i||null===i)throw'Missing the required parameter "voiceId" when calling getIntegrationsSpeechTtsEngineVoice';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices/{voiceId}","GET",{engineId:e,voiceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngineVoices(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "engineId" when calling getIntegrationsSpeechTtsEngineVoices';return this.apiClient.callApi("/api/v2/integrations/speech/tts/engines/{engineId}/voices","GET",{engineId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsEngines(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/speech/tts/engines","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,includeVoices:e.includeVoices,name:e.name,language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsSpeechTtsSettings(){return this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsType(e){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getIntegrationsType';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}","GET",{typeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsTypeConfigschema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "typeId" when calling getIntegrationsTypeConfigschema';if(void 0===i||null===i)throw'Missing the required parameter "configType" when calling getIntegrationsTypeConfigschema';return this.apiClient.callApi("/api/v2/integrations/types/{typeId}/configschemas/{configType}","GET",{typeId:e,configType:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsTypes(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/types","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUnifiedcommunicationsClientapp(e){if(void 0===e||null===e)throw'Missing the required parameter "ucIntegrationId" when calling getIntegrationsUnifiedcommunicationsClientapp';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps/{ucIntegrationId}","GET",{ucIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUnifiedcommunicationsClientapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/clientapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIntegrationsUserapps(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/userapps","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,appHost:e.appHost},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchIntegration';return this.apiClient.callApi("/api/v2/integrations/{integrationId}","PATCH",{integrationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegrationsAction(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling patchIntegrationsAction';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchIntegrationsAction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchIntegrationsActionDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling patchIntegrationsActionDraft';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","PATCH",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrations(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraft';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft","POST",{actionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftFunctionUpload(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftPublish(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftPublish';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftPublish';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/publish","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftTest(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftTest';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/test","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionExecute(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionExecute';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionExecute';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/execute","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionTest(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionTest';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionTest';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/test","POST",{actionId:e},{flatten:t.flatten},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIntegrationsActions';return this.apiClient.callApi("/api/v2/integrations/actions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionsDrafts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postIntegrationsActionsDrafts';return this.apiClient.callApi("/api/v2/integrations/actions/drafts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsCredentials(e){return e=e||{},this.apiClient.callApi("/api/v2/integrations/credentials","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';if(void 0===i||null===i)throw'Missing the required parameter "botId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/{botId}/jobs","POST",{nuanceIntegrationId:e,botId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsJobs';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/jobs","POST",{nuanceIntegrationId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,onlyRegisteredBots:i.onlyRegisteredBots},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';if(void 0===i||null===i)throw'Missing the required parameter "settings" when calling postIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchValidate';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/validate","POST",{nuanceIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationConfigCurrent(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putIntegrationConfigCurrent';return this.apiClient.callApi("/api/v2/integrations/{integrationId}/config/current","PUT",{integrationId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsActionDraftFunction(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling putIntegrationsActionDraftFunction';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIntegrationsActionDraftFunction';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function","PUT",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsBotconnectorIntegrationIdBots(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putIntegrationsBotconnectorIntegrationIdBots';if(void 0===i||null===i)throw'Missing the required parameter "botList" when calling putIntegrationsBotconnectorIntegrationIdBots';return this.apiClient.callApi("/api/v2/integrations/botconnector/{integrationId}/bots","PUT",{integrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsCredential(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "credentialId" when calling putIntegrationsCredential';return this.apiClient.callApi("/api/v2/integrations/credentials/{credentialId}","PUT",{credentialId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "nuanceIntegrationId" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';if(void 0===i||null===i)throw'Missing the required parameter "settings" when calling putIntegrationsSpeechNuanceNuanceIntegrationIdBotsLaunchSettings';return this.apiClient.callApi("/api/v2/integrations/speech/nuance/{nuanceIntegrationId}/bots/launch/settings","PUT",{nuanceIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsSpeechTtsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putIntegrationsSpeechTtsSettings';return this.apiClient.callApi("/api/v2/integrations/speech/tts/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putIntegrationsUnifiedcommunicationThirdpartypresences(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ucIntegrationId" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';return this.apiClient.callApi("/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences","PUT",{ucIntegrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class _{constructor(e){this.apiClient=e||w.instance}deleteJourneyActionmap(e){if(void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling deleteJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","DELETE",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyActiontemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling deleteJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","DELETE",{actionTemplateId:e},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling deleteJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","DELETE",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyOutcomesPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling deleteJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneySegment(e){if(void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling deleteJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","DELETE",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyView(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling deleteJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteJourneyViewSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling deleteJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","DELETE",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsJourneysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsJourneysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getExternalcontactsContactJourneySessions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactId" when calling getExternalcontactsContactJourneySessions';return this.apiClient.callApi("/api/v2/externalcontacts/contacts/{contactId}/journey/sessions","GET",{contactId:e},{pageSize:i.pageSize,after:i.after,includeMerged:i.includeMerged},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmap(e){if(void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling getJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","GET",{actionMapId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,filterField:e.filterField,filterValue:e.filterValue,actionMapIds:this.apiClient.buildCollectionParam(e.actionMapIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmapsEstimatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJob';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActionmapsEstimatesJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyActionmapsEstimatesJobResults';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontarget(e){if(void 0===e||null===e)throw'Missing the required parameter "actionTargetId" when calling getJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","GET",{actionTargetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontargets(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontargets","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling getJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","GET",{actionTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,mediaType:e.mediaType,state:e.state,queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyDeploymentCustomerPing(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getJourneyDeploymentCustomerPing';if(void 0===i||null===i)throw'Missing the required parameter "customerCookieId" when calling getJourneyDeploymentCustomerPing';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/customers/{customerCookieId}/ping","GET",{deploymentId:e,customerCookieId:i},{dl:t.dl,dt:t.dt,appNamespace:t.appNamespace,sessionId:t.sessionId,sinceLastBeaconMilliseconds:t.sinceLastBeaconMilliseconds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcome(e){if(void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling getJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","GET",{outcomeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,outcomeIds:this.apiClient.buildCollectionParam(e.outcomeIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesAttributionsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJob';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesAttributionsJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getJourneyOutcomesAttributionsJobResults';return this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getJourneyOutcomesPredictor';return this.apiClient.callApi("/api/v2/journey/outcomes/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyOutcomesPredictors(){return this.apiClient.callApi("/api/v2/journey/outcomes/predictors","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySegment(e){if(void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling getJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","GET",{segmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","GET",{},{sortBy:e.sortBy,pageSize:e.pageSize,pageNumber:e.pageNumber,isActive:e.isActive,segmentIds:this.apiClient.buildCollectionParam(e.segmentIds,"multi"),queryFields:this.apiClient.buildCollectionParam(e.queryFields,"multi"),queryValue:e.queryValue},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySession(e){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySession';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySessionEvents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySessionEvents';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/events","GET",{sessionId:e},{pageSize:i.pageSize,after:i.after,eventType:i.eventType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneySessionOutcomescores(e){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getJourneySessionOutcomescores';return this.apiClient.callApi("/api/v2/journey/sessions/{sessionId}/outcomescores","GET",{sessionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyView(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyView';return this.apiClient.callApi("/api/v2/journey/views/{viewId}","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","GET",{viewId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","GET",{viewId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionChart(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChart';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChart';if(void 0===t||null===t)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}","GET",{viewId:e,journeyViewVersion:i,chartId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionChartVersion(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionChartVersion';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionChartVersion';if(void 0===t||null===t)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionChartVersion';if(void 0===n||null===n)throw'Missing the required parameter "chartVersion" when calling getJourneyViewVersionChartVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/charts/{chartId}/versions/{chartVersion}","GET",{viewId:e,journeyViewVersion:i,chartId:t,chartVersion:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJob';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","GET",{viewId:e,journeyVersionId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobResults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResults';if(void 0===i||null===i)throw'Missing the required parameter "journeyViewVersion" when calling getJourneyViewVersionJobResults';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResults';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyViewVersion}/jobs/{jobId}/results","GET",{viewId:e,journeyViewVersion:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobResultsChart(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobResultsChart';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobResultsChart';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getJourneyViewVersionJobResultsChart';if(void 0===n||null===n)throw'Missing the required parameter "chartId" when calling getJourneyViewVersionJobResultsChart';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}/results/charts/{chartId}","GET",{viewId:e,journeyVersionId:i,jobId:t,chartId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewVersionJobsLatest(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling getJourneyViewVersionJobsLatest';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling getJourneyViewVersionJobsLatest';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/latest","GET",{viewId:e,journeyVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViews(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,nameOrCreatedBy:e.nameOrCreatedBy,expand:e.expand,id:e.id},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsEventdefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "eventDefinitionId" when calling getJourneyViewsEventdefinition';return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsEventdefinitions(){return this.apiClient.callApi("/api/v2/journey/views/eventdefinitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/jobs","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,interval:e.interval,statuses:e.statuses},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getJourneyViewsSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActionmap(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionMapId" when calling patchJourneyActionmap';return this.apiClient.callApi("/api/v2/journey/actionmaps/{actionMapId}","PATCH",{actionMapId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActiontarget(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTargetId" when calling patchJourneyActiontarget';return this.apiClient.callApi("/api/v2/journey/actiontargets/{actionTargetId}","PATCH",{actionTargetId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyActiontemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "actionTemplateId" when calling patchJourneyActiontemplate';return this.apiClient.callApi("/api/v2/journey/actiontemplates/{actionTemplateId}","PATCH",{actionTemplateId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyOutcome(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "outcomeId" when calling patchJourneyOutcome';return this.apiClient.callApi("/api/v2/journey/outcomes/{outcomeId}","PATCH",{outcomeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneySegment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "segmentId" when calling patchJourneySegment';return this.apiClient.callApi("/api/v2/journey/segments/{segmentId}","PATCH",{segmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchJourneyViewVersionJob(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling patchJourneyViewVersionJob';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling patchJourneyViewVersionJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling patchJourneyViewVersionJob';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchJourneyViewVersionJob';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs/{jobId}","PATCH",{viewId:e,journeyVersionId:i,jobId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsJourneysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsJourneysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/journeys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActionmaps(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actionmaps","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActionmapsEstimatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postJourneyActionmapsEstimatesJobs';return this.apiClient.callApi("/api/v2/journey/actionmaps/estimates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyActiontemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/actiontemplates","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentActionevent(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentActionevent';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyDeploymentActionevent';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/actionevent","POST",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentAppevents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentAppevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/appevents","POST",{deploymentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyDeploymentWebevents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling postJourneyDeploymentWebevents';return this.apiClient.callApi("/api/v2/journey/deployments/{deploymentId}/webevents","POST",{deploymentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyFlowsPathsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/flows/paths/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomes(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomesAttributionsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/attributions/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyOutcomesPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/outcomes/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneySegments(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/segments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewSchedules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewSchedules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewVersionJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewVersionJobs';if(void 0===i||null===i)throw'Missing the required parameter "journeyVersionId" when calling postJourneyViewVersionJobs';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{journeyVersionId}/jobs","POST",{viewId:e,journeyVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewVersions(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling postJourneyViewVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postJourneyViewVersions';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions","POST",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViews(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postJourneyViews';return this.apiClient.callApi("/api/v2/journey/views","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postJourneyViewsEncodingsValidate(e){return e=e||{},this.apiClient.callApi("/api/v2/journey/views/encodings/validate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putJourneyViewSchedules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling putJourneyViewSchedules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putJourneyViewSchedules';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/schedules","PUT",{viewId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putJourneyViewVersion(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "viewId" when calling putJourneyViewVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling putJourneyViewVersion';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putJourneyViewVersion';return this.apiClient.callApi("/api/v2/journey/views/{viewId}/versions/{versionId}","PUT",{viewId:e,versionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class H{constructor(e){this.apiClient=e||w.instance}deleteKnowledgeKnowledgebase(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","DELETE",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","DELETE",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","DELETE",{knowledgeBaseId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseDocumentVariation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","DELETE",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling deleteKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","DELETE",{knowledgeBaseId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseImportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling deleteKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","DELETE",{knowledgeBaseId:e,importJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling deleteKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","DELETE",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","DELETE",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","DELETE",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling deleteKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","DELETE",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling deleteKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","DELETE",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteKnowledgeKnowledgebaseSynchronizeJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling deleteKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","DELETE",{knowledgeBaseId:e,syncJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionCategories';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/categories","GET",{sessionId:e},{before:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionDocument(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeGuestSessionDocument';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}","GET",{sessionId:e,documentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeGuestSessionDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling getKnowledgeGuestSessionDocuments';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents","GET",{sessionId:e},{categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeIntegrationOptions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getKnowledgeIntegrationOptions';return this.apiClient.callApi("/api/v2/knowledge/integrations/{integrationId}/options","GET",{integrationId:e},{knowledgeBaseIds:this.apiClient.buildCollectionParam(i.knowledgeBaseIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebase(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,parentId:i.parentId,isRoot:i.isRoot,name:i.name,sortBy:i.sortBy,expand:i.expand,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","GET",{knowledgeBaseId:e,categoryId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocument(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","GET",{knowledgeBaseId:e,documentId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi"),state:t.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,onlyCommented:t.onlyCommented,documentVersionId:t.documentVersionId,documentVariationId:t.documentVariationId,appType:t.appType,queryType:t.queryType,userId:t.userId,queueId:t.queueId,state:t.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===t||null===t)throw'Missing the required parameter "feedbackId" when calling getKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","GET",{knowledgeBaseId:e,documentId:i,feedbackId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVariation(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","GET",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{documentState:n.documentState,expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVariations(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,documentState:t.documentState,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersion';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersion';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}","GET",{knowledgeBaseId:e,documentId:i,versionId:t},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersionVariation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';if(void 0===n||null===n)throw'Missing the required parameter "variationId" when calling getKnowledgeKnowledgebaseDocumentVersionVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations/{variationId}","GET",{knowledgeBaseId:e,documentId:i,versionId:t,variationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersionVariations(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';if(void 0===t||null===t)throw'Missing the required parameter "versionId" when calling getKnowledgeKnowledgebaseDocumentVersionVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions/{versionId}/variations","GET",{knowledgeBaseId:e,documentId:i,versionId:t},{before:n.before,after:n.after,pageSize:n.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocumentVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocumentVersions';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","GET",{knowledgeBaseId:e,documentId:i},{before:t.before,after:t.after,pageSize:t.pageSize,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseDocuments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,interval:i.interval,documentId:this.apiClient.buildCollectionParam(i.documentId,"multi"),categoryId:this.apiClient.buildCollectionParam(i.categoryId,"multi"),includeSubcategories:i.includeSubcategories,includeDrafts:i.includeDrafts,labelIds:this.apiClient.buildCollectionParam(i.labelIds,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi"),externalIds:this.apiClient.buildCollectionParam(i.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseExportJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseExportJob';if(void 0===i||null===i)throw'Missing the required parameter "exportJobId" when calling getKnowledgeKnowledgebaseExportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs/{exportJobId}","GET",{knowledgeBaseId:e,exportJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseImportJob(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling getKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","GET",{knowledgeBaseId:e,importJobId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling getKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","GET",{knowledgeBaseId:e,labelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLabels(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,name:i.name,includeDocumentCount:i.includeDocumentCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageCategories(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategories';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,name:t.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling getKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","GET",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","GET",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocumentUpload(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';if(void 0===n||null===n)throw'Missing the required parameter "uploadId" when calling getKnowledgeKnowledgebaseLanguageDocumentUpload';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads/{uploadId}","GET",{documentId:e,knowledgeBaseId:i,languageCode:t,uploadId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,categories:t.categories,title:t.title,sortBy:t.sortBy,sortOrder:t.sortOrder,documentIds:this.apiClient.buildCollectionParam(t.documentIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling getKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","GET",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageTraining(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTraining';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTraining';if(void 0===t||null===t)throw'Missing the required parameter "trainingId" when calling getKnowledgeKnowledgebaseLanguageTraining';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}","GET",{knowledgeBaseId:e,languageCode:i,trainingId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseLanguageTrainings(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseLanguageTrainings';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling getKnowledgeKnowledgebaseLanguageTrainings';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings","GET",{knowledgeBaseId:e,languageCode:i},{before:t.before,after:t.after,limit:t.limit,pageSize:t.pageSize,knowledgeDocumentsState:t.knowledgeDocumentsState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseOperations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations","GET",{knowledgeBaseId:e},{before:i.before,after:i.after,pageSize:i.pageSize,userId:this.apiClient.buildCollectionParam(i.userId,"multi"),type:this.apiClient.buildCollectionParam(i.type,"multi"),status:this.apiClient.buildCollectionParam(i.status,"multi"),interval:i.interval,sourceId:this.apiClient.buildCollectionParam(i.sourceId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseOperationsUsersQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperationsUsersQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations/users/query","GET",{knowledgeBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseParseJob(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseParseJob';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling getKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","GET",{knowledgeBaseId:e,parseJobId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSources(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSources';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources","GET",{knowledgeBaseId:e},{type:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),ids:this.apiClient.buildCollectionParam(i.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","GET",{knowledgeBaseId:e,sourceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","GET",{knowledgeBaseId:e,sourceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseSynchronizeJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling getKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","GET",{knowledgeBaseId:e,syncJobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}","GET",{knowledgeBaseId:e,groupId:i},{app:t.app,dateStart:t.dateStart,dateEnd:t.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===t||null===t)throw'Missing the required parameter "phraseGroupId" when calling getKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","GET",{knowledgeBaseId:e,groupId:i,phraseGroupId:t},{app:n.app,dateStart:n.dateStart,dateEnd:n.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUnansweredGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUnansweredGroups';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups","GET",{knowledgeBaseId:e},{app:i.app,dateStart:i.dateStart,dateEnd:i.dateEnd},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getKnowledgeKnowledgebases(e){return e=e||{},this.apiClient.callApi("/api/v2/knowledge/knowledgebases","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,name:e.name,coreLanguage:e.coreLanguage,published:e.published,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeGuestSessionDocumentsSearchSearchId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(void 0===i||null===i)throw'Missing the required parameter "searchId" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeGuestSessionDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/{searchId}","PATCH",{sessionId:e,searchId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebase(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebase';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebase';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}","PATCH",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseCategory(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseCategory';if(void 0===i||null===i)throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseCategory';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories/{categoryId}","PATCH",{knowledgeBaseId:e,categoryId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocument(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocument';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocument';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}","PATCH",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';if(void 0===t||null===t)throw'Missing the required parameter "feedbackId" when calling patchKnowledgeKnowledgebaseDocumentFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback/{feedbackId}","PATCH",{knowledgeBaseId:e,documentId:i,feedbackId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentVariation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentVariationId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===t||null===t)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentVariation';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseDocumentVariation';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations/{documentVariationId}","PATCH",{documentVariationId:e,documentId:i,knowledgeBaseId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseDocumentsSearchSearchId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';if(void 0===i||null===i)throw'Missing the required parameter "searchId" when calling patchKnowledgeKnowledgebaseDocumentsSearchSearchId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/{searchId}","PATCH",{knowledgeBaseId:e,searchId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseImportJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseImportJob';if(void 0===i||null===i)throw'Missing the required parameter "importJobId" when calling patchKnowledgeKnowledgebaseImportJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseImportJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs/{importJobId}","PATCH",{knowledgeBaseId:e,importJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLabel(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLabel';if(void 0===i||null===i)throw'Missing the required parameter "labelId" when calling patchKnowledgeKnowledgebaseLabel';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLabel';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels/{labelId}","PATCH",{knowledgeBaseId:e,labelId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageCategory(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageCategory';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageCategory';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories/{categoryId}","PATCH",{categoryId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocument(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocument';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocument';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}","PATCH",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocuments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","PATCH",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseLanguageDocumentsImport(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===t||null===t)throw'Missing the required parameter "importId" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseLanguageDocumentsImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports/{importId}","PATCH",{knowledgeBaseId:e,languageCode:i,importId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseParseJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseParseJob';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling patchKnowledgeKnowledgebaseParseJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseParseJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}","PATCH",{knowledgeBaseId:e,parseJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseSynchronizeJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(void 0===i||null===i)throw'Missing the required parameter "syncJobId" when calling patchKnowledgeKnowledgebaseSynchronizeJob';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseSynchronizeJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs/{syncJobId}","PATCH",{knowledgeBaseId:e,syncJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===i||null===i)throw'Missing the required parameter "groupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===t||null===t)throw'Missing the required parameter "phraseGroupId" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchKnowledgeKnowledgebaseUnansweredGroupPhrasegroup';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/unanswered/groups/{groupId}/phrasegroups/{phraseGroupId}","PATCH",{knowledgeBaseId:e,groupId:i,phraseGroupId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeDocumentuploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentCopies(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentCopies';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/copies","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/feedback","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentViews(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentViews';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeGuestSessionDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/{documentId}/views","POST",{sessionId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsAnswers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsAnswers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessionDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/answers","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsPresentations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/presentations","POST",{sessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search","POST",{sessionId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessionDocumentsSearchSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postKnowledgeGuestSessionDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions/{sessionId}/documents/search/suggestions","POST",{sessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeGuestSessions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeGuestSessions';return this.apiClient.callApi("/api/v2/knowledge/guest/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseCategories(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseCategories';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/categories","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentCopies(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentCopies';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentCopies';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/copies","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentFeedback(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentFeedback';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentFeedback';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/feedback","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentVariations(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVariations';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVariations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/variations","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentVersions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentVersions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentVersions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/versions","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentViews(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentViews';if(void 0===i||null===i)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseDocumentViews';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/{documentId}/views","POST",{knowledgeBaseId:e,documentId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocuments(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocuments';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsAnswers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsAnswers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsAnswers';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/answers","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsBulkRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkRemove';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/remove","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsBulkUpdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsBulkUpdate';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/bulk/update","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsPresentations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsPresentations';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/presentations","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsQuery';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/query","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search","POST",{knowledgeBaseId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsSearchSuggestions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsSearchSuggestions';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/search/suggestions","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseDocumentsVersionsBulkAdd';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/documents/versions/bulk/add","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseExportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseExportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseExportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/export/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseImportJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseImportJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseImportJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/import/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLabels(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLabels';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLabels';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/labels","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageCategories(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageCategories';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageCategories';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageCategories';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/categories","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocumentUploads(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "documentId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===i||null===i)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===t||null===t)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentUploads';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/{documentId}/uploads","POST",{documentId:e,knowledgeBaseId:i,languageCode:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocuments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocuments';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocuments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocuments';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageDocumentsImports(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseLanguageDocumentsImports';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/documents/imports","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageTrainingPromote(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';if(void 0===t||null===t)throw'Missing the required parameter "trainingId" when calling postKnowledgeKnowledgebaseLanguageTrainingPromote';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings/{trainingId}/promote","POST",{knowledgeBaseId:e,languageCode:i,trainingId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseLanguageTrainings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseLanguageTrainings';if(void 0===i||null===i)throw'Missing the required parameter "languageCode" when calling postKnowledgeKnowledgebaseLanguageTrainings';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/languages/{languageCode}/trainings","POST",{knowledgeBaseId:e,languageCode:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseParseJobImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobImport';if(void 0===i||null===i)throw'Missing the required parameter "parseJobId" when calling postKnowledgeKnowledgebaseParseJobImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobImport';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs/{parseJobId}/import","POST",{knowledgeBaseId:e,parseJobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseParseJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseParseJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseParseJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/parse/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesSalesforce(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforce';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesSalesforce';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesSalesforceSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesServicenow(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenow';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSourcesServicenow';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling postKnowledgeKnowledgebaseSourcesServicenowSourceIdSync';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}/sync","POST",{knowledgeBaseId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSynchronizeJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSynchronizeJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseSynchronizeJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/synchronize/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebases(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebases';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putKnowledgeKnowledgebaseSourcesSalesforceSourceId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesSalesforceSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/salesforce/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putKnowledgeKnowledgebaseSourcesServicenowSourceId(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}","PUT",{knowledgeBaseId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class ${constructor(e){this.apiClient=e||w.instance}deleteLanguageunderstandingDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingDomainFeedbackFeedbackId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "feedbackId" when calling deleteLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","DELETE",{domainId:e,feedbackId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingDomainVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling deleteLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","DELETE",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingMiner(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","DELETE",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLanguageunderstandingMinerDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling deleteLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling deleteLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","DELETE",{minerId:e,draftId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainFeedback(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","GET",{domainId:e},{intentName:i.intentName,assessment:i.assessment,dateStart:i.dateStart,dateEnd:i.dateEnd,includeDeleted:i.includeDeleted,language:i.language,pageNumber:i.pageNumber,pageSize:i.pageSize,enableCursorPagination:i.enableCursorPagination,includeTrainingUtterances:i.includeTrainingUtterances,after:i.after,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainFeedbackFeedbackId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';if(void 0===i||null===i)throw'Missing the required parameter "feedbackId" when calling getLanguageunderstandingDomainFeedbackFeedbackId';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback/{feedbackId}","GET",{domainId:e,feedbackId:i},{fields:this.apiClient.buildCollectionParam(t.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","GET",{domainId:e,domainVersionId:i},{includeUtterances:t.includeUtterances},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersionReport(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersionReport';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling getLanguageunderstandingDomainVersionReport';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/report","GET",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomainVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","GET",{domainId:e},{includeUtterances:i.includeUtterances,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/domains","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMiner(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMiner';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerDraft(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling getLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","GET",{minerId:e,draftId:i},{draftIntentId:t.draftIntentId,draftTopicId:t.draftTopicId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerDrafts(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerIntent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntent';if(void 0===i||null===i)throw'Missing the required parameter "intentId" when calling getLanguageunderstandingMinerIntent';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents/{intentId}","GET",{minerId:e,intentId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerIntents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerIntents';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/intents","GET",{minerId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopic(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopic';if(void 0===i||null===i)throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopic';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}","GET",{minerId:e,topicId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopicPhrase(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopicPhrase';if(void 0===i||null===i)throw'Missing the required parameter "topicId" when calling getLanguageunderstandingMinerTopicPhrase';if(void 0===t||null===t)throw'Missing the required parameter "phraseId" when calling getLanguageunderstandingMinerTopicPhrase';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics/{topicId}/phrases/{phraseId}","GET",{minerId:e,topicId:i,phraseId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMinerTopics(e){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling getLanguageunderstandingMinerTopics';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/topics","GET",{minerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingMiners(e){return e=e||{},this.apiClient.callApi("/api/v2/languageunderstanding/miners","GET",{},{minerType:e.minerType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguageunderstandingSettings(){return this.apiClient.callApi("/api/v2/languageunderstanding/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLanguageunderstandingDomain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchLanguageunderstandingDomain';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchLanguageunderstandingDomain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchLanguageunderstandingMinerDraft(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling patchLanguageunderstandingMinerDraft';if(void 0===i||null===i)throw'Missing the required parameter "draftId" when calling patchLanguageunderstandingMinerDraft';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts/{draftId}","PATCH",{minerId:e,draftId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainFeedback(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainFeedback';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainFeedback';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/feedback","POST",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionDetect(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionDetect';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionDetect';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersionDetect';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/detect","POST",{domainId:e,domainVersionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionPublish(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionPublish';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionPublish';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/publish","POST",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersionTrain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersionTrain';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling postLanguageunderstandingDomainVersionTrain';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}/train","POST",{domainId:e,domainVersionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomainVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postLanguageunderstandingDomainVersions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomainVersions';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions","POST",{domainId:e},{includeUtterances:t.includeUtterances},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguageunderstandingDomains';return this.apiClient.callApi("/api/v2/languageunderstanding/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerDrafts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerDrafts';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerDrafts';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/drafts","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerExecute(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerExecute';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/execute","POST",{minerId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMiners(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguageunderstandingMiners';return this.apiClient.callApi("/api/v2/languageunderstanding/miners","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putLanguageunderstandingDomainVersion(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling putLanguageunderstandingDomainVersion';if(void 0===i||null===i)throw'Missing the required parameter "domainVersionId" when calling putLanguageunderstandingDomainVersion';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';return this.apiClient.callApi("/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}","PUT",{domainId:e,domainVersionId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class Z{constructor(e){this.apiClient=e||w.instance}deleteLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling deleteLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getLanguage';return this.apiClient.callApi("/api/v2/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslations(){return this.apiClient.callApi("/api/v2/languages/translations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsBuiltin(e){if(void 0===e||null===e)throw'Missing the required parameter "language" when calling getLanguagesTranslationsBuiltin';return this.apiClient.callApi("/api/v2/languages/translations/builtin","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsOrganization(e){if(void 0===e||null===e)throw'Missing the required parameter "language" when calling getLanguagesTranslationsOrganization';return this.apiClient.callApi("/api/v2/languages/translations/organization","GET",{},{language:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLanguagesTranslationsUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getLanguagesTranslationsUser';return this.apiClient.callApi("/api/v2/languages/translations/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLanguages';return this.apiClient.callApi("/api/v2/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class X{constructor(e){this.apiClient=e||w.instance}deleteLearningAssignment(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling deleteLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","DELETE",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteLearningModule(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling deleteLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","DELETE",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling getLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","GET",{assignmentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignmentStep(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';if(void 0===i||null===i)throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","GET",{assignmentId:e,stepId:i},{shareableContentObjectId:t.shareableContentObjectId,defaultShareableContentObject:t.defaultShareableContentObject,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,userId:this.apiClient.buildCollectionParam(e.userId,"multi"),types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningAssignmentsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pageSize:e.pageSize,pageNumber:e.pageNumber,pass:e.pass,minPercentageScore:e.minPercentageScore,maxPercentageScore:e.maxPercentageScore,sortOrder:e.sortOrder,sortBy:e.sortBy,types:this.apiClient.buildCollectionParam(e.types,"multi"),states:this.apiClient.buildCollectionParam(e.states,"multi"),expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","GET",{moduleId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getLearningModuleJob';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs/{jobId}","GET",{moduleId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulePreview(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleRule(e){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","GET",{moduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModuleVersion(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling getLearningModuleVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getLearningModuleVersion';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/versions/{versionId}","GET",{moduleId:e,versionId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModules(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/modules","GET",{},{isArchived:e.isArchived,types:this.apiClient.buildCollectionParam(e.types,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,sortBy:e.sortBy,searchTerm:e.searchTerm,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),isPublished:e.isPublished,statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),externalIds:this.apiClient.buildCollectionParam(e.externalIds,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulesAssignments(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userIds" when calling getLearningModulesAssignments';return this.apiClient.callApi("/api/v2/learning/modules/assignments","GET",{},{userIds:this.apiClient.buildCollectionParam(e,"multi"),pageSize:i.pageSize,pageNumber:i.pageNumber,searchTerm:i.searchTerm,overdue:i.overdue,assignmentStates:this.apiClient.buildCollectionParam(i.assignmentStates,"multi"),expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningModulesCoverartCoverArtId(e){if(void 0===e||null===e)throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';return this.apiClient.callApi("/api/v2/learning/modules/coverart/{coverArtId}","GET",{coverArtId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLearningScormScormId(e){if(void 0===e||null===e)throw'Missing the required parameter "scormId" when calling getLearningScormScormId';return this.apiClient.callApi("/api/v2/learning/scorm/{scormId}","GET",{scormId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignment';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignmentReschedule(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reschedule","PATCH",{assignmentId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningAssignmentStep(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';if(void 0===i||null===i)throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/steps/{stepId}","PATCH",{assignmentId:e,stepId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchLearningModuleUserAssignments(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling patchLearningModuleUserAssignments';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchLearningModuleUserAssignments';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchLearningModuleUserAssignments';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/users/{userId}/assignments","PATCH",{moduleId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssessmentsScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningAssessmentsScoring';return this.apiClient.callApi("/api/v2/learning/assessments/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentReassign(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReassign';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reassign","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentReset(e){if(void 0===e||null===e)throw'Missing the required parameter "assignmentId" when calling postLearningAssignmentReset';return this.apiClient.callApi("/api/v2/learning/assignments/{assignmentId}/reset","POST",{assignmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignments(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningAssignmentsAggregatesQuery';return this.apiClient.callApi("/api/v2/learning/assignments/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsBulkadd(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkadd","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningAssignmentsBulkremove(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/assignments/bulkremove","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModuleJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling postLearningModuleJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLearningModuleJobs';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/jobs","POST",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModulePublish(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling postLearningModulePublish';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/publish","POST",{moduleId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningModules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningModules';return this.apiClient.callApi("/api/v2/learning/modules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningRulesQuery(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "pageSize" when calling postLearningRulesQuery';if(void 0===i||null===i)throw'Missing the required parameter "pageNumber" when calling postLearningRulesQuery';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postLearningRulesQuery';return this.apiClient.callApi("/api/v2/learning/rules/query","POST",{},{pageSize:e,pageNumber:i},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningScheduleslotsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';return this.apiClient.callApi("/api/v2/learning/scheduleslots/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLearningScorm(e){return e=e||{},this.apiClient.callApi("/api/v2/learning/scorm","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModulePreview(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModulePreview';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/preview","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putLearningModuleRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "moduleId" when calling putLearningModuleRule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putLearningModuleRule';return this.apiClient.callApi("/api/v2/learning/modules/{moduleId}/rule","PUT",{moduleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Y{constructor(e){this.apiClient=e||w.instance}getLicenseDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "licenseId" when calling getLicenseDefinition';return this.apiClient.callApi("/api/v2/license/definitions/{licenseId}","GET",{licenseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseDefinitions(){return this.apiClient.callApi("/api/v2/license/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseToggle(e){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling getLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","GET",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getLicenseUser';return this.apiClient.callApi("/api/v2/license/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseInfer(e){return e=e||{},this.apiClient.callApi("/api/v2/license/infer","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseOrganization(e){return e=e||{},this.apiClient.callApi("/api/v2/license/organization","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseToggle(e){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling postLicenseToggle';return this.apiClient.callApi("/api/v2/license/toggles/{featureName}","POST",{featureName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postLicenseUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/license/users","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class ee{constructor(e){this.apiClient=e||w.instance}deleteLocation(e){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling deleteLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","DELETE",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocation(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "locationId" when calling getLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","GET",{locationId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationSublocations(e){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling getLocationSublocations';return this.apiClient.callApi("/api/v2/locations/{locationId}/sublocations","GET",{locationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocations(e){return e=e||{},this.apiClient.callApi("/api/v2/locations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchLocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "locationId" when calling patchLocation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchLocation';return this.apiClient.callApi("/api/v2/locations/{locationId}","PATCH",{locationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLocations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocations';return this.apiClient.callApi("/api/v2/locations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postLocationsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ie{constructor(e){this.apiClient=e||w.instance}deleteDiagnosticsLogcaptureBrowserUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserEntriesDownloadJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getDiagnosticsLogcaptureBrowserEntriesDownloadJob';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDiagnosticsLogcaptureBrowserUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users","GET",{},{includeExpired:e.includeExpired},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserEntriesDownloadJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/download/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserEntriesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/entries/query","POST",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postDiagnosticsLogcaptureBrowserUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';return this.apiClient.callApi("/api/v2/diagnostics/logcapture/browser/users/{userId}","POST",{userId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class te{constructor(e){this.apiClient=e||w.instance}deleteMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling deleteMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","DELETE",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/messaging/settings/default","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling deleteMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","DELETE",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSetting(e){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling getMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","GET",{messageSettingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/settings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSettingsDefault(){return this.apiClient.callApi("/api/v2/messaging/settings/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSupportedcontent(e){return e=e||{},this.apiClient.callApi("/api/v2/messaging/supportedcontent","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMessagingSupportedcontentSupportedContentId(e){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling getMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","GET",{supportedContentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchMessagingSetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageSettingId" when calling patchMessagingSetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchMessagingSetting';return this.apiClient.callApi("/api/v2/messaging/settings/{messageSettingId}","PATCH",{messageSettingId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchMessagingSupportedcontentSupportedContentId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "supportedContentId" when calling patchMessagingSupportedcontentSupportedContentId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchMessagingSupportedcontentSupportedContentId';return this.apiClient.callApi("/api/v2/messaging/supportedcontent/{supportedContentId}","PATCH",{supportedContentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postMessagingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMessagingSettings';return this.apiClient.callApi("/api/v2/messaging/settings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postMessagingSupportedcontent(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMessagingSupportedcontent';return this.apiClient.callApi("/api/v2/messaging/supportedcontent","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putMessagingSettingsDefault(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';return this.apiClient.callApi("/api/v2/messaging/settings/default","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ne{constructor(e){this.apiClient=e||w.instance}deleteMobiledevice(e){if(void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling deleteMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","DELETE",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMobiledevice(e){if(void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling getMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","GET",{deviceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getMobiledevices(e){return e=e||{},this.apiClient.callApi("/api/v2/mobiledevices","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postMobiledevices(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postMobiledevices';return this.apiClient.callApi("/api/v2/mobiledevices","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putMobiledevice(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deviceId" when calling putMobiledevice';return this.apiClient.callApi("/api/v2/mobiledevices/{deviceId}","PUT",{deviceId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class ae{constructor(e){this.apiClient=e||w.instance}deleteNotificationsChannelSubscriptions(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling deleteNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","DELETE",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsAvailabletopics(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/availabletopics","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),includePreview:e.includePreview},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsChannelSubscriptions(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling getNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","GET",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getNotificationsChannels(e){return e=e||{},this.apiClient.callApi("/api/v2/notifications/channels","GET",{},{includechannels:e.includechannels},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}headNotificationsChannel(e){if(void 0===e||null===e)throw'Missing the required parameter "channelId" when calling headNotificationsChannel';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}","HEAD",{channelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postNotificationsChannelSubscriptions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "channelId" when calling postNotificationsChannelSubscriptions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","POST",{channelId:e},{ignoreErrors:t.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postNotificationsChannels(){return this.apiClient.callApi("/api/v2/notifications/channels","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putNotificationsChannelSubscriptions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "channelId" when calling putNotificationsChannelSubscriptions';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';return this.apiClient.callApi("/api/v2/notifications/channels/{channelId}/subscriptions","PUT",{channelId:e},{ignoreErrors:t.ignoreErrors},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class oe{constructor(e){this.apiClient=e||w.instance}deleteOauthClient(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling deleteOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","DELETE",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthAuthorization(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthAuthorization';return this.apiClient.callApi("/api/v2/oauth/authorizations/{clientId}","GET",{clientId:e},{},{"Accept-Language":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthAuthorizations(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/authorizations","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClient(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","GET",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageQueryResult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageSummary(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClients(){return this.apiClient.callApi("/api/v2/oauth/clients","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthScope(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scopeId" when calling getOauthScope';return this.apiClient.callApi("/api/v2/oauth/scopes/{scopeId}","GET",{scopeId:e},{},{"Accept-Language":i.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthScopes(e){return e=e||{},this.apiClient.callApi("/api/v2/oauth/scopes","GET",{},{},{"Accept-Language":e.acceptLanguage},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientSecret(e){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientSecret';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/secret","POST",{clientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientUsageQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClients(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOauthClients';return this.apiClient.callApi("/api/v2/oauth/clients","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOauthClient(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling putOauthClient';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOauthClient';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}","PUT",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class re{constructor(e){this.apiClient=e||w.instance}deleteAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","DELETE",{divisionId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivision(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling getAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","GET",{divisionId:e},{objectCount:i.objectCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisions(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/divisions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,objectCount:e.objectCount,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsHome(){return this.apiClient.callApi("/api/v2/authorization/divisions/home","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionsLimit(){return this.apiClient.callApi("/api/v2/authorization/divisions/limit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionObject(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionObject';if(void 0===i||null===i)throw'Missing the required parameter "objectType" when calling postAuthorizationDivisionObject';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postAuthorizationDivisionObject';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/objects/{objectType}","POST",{divisionId:e,objectType:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisionRestore(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling postAuthorizationDivisionRestore';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}/restore","POST",{divisionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationDivisions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAuthorizationDivisions';return this.apiClient.callApi("/api/v2/authorization/divisions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putAuthorizationDivision(e,i){if(void 0===e||null===e)throw'Missing the required parameter "divisionId" when calling putAuthorizationDivision';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAuthorizationDivision';return this.apiClient.callApi("/api/v2/authorization/divisions/{divisionId}","PUT",{divisionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class le{constructor(e){this.apiClient=e||w.instance}getUsageEventsDefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "eventDefinitionId" when calling getUsageEventsDefinition';return this.apiClient.callApi("/api/v2/usage/events/definitions/{eventDefinitionId}","GET",{eventDefinitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageEventsDefinitions(){return this.apiClient.callApi("/api/v2/usage/events/definitions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageEventsAggregatesQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/aggregates/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageEventsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/usage/events/query","POST",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class se{constructor(e){this.apiClient=e||w.instance}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsAuthenticationSettings(){return this.apiClient.callApi("/api/v2/organizations/authentication/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsEmbeddedintegration(){return this.apiClient.callApi("/api/v2/organizations/embeddedintegration","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsIpaddressauthentication(){return this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsChangerequest(e){if(void 0===e||null===e)throw'Missing the required parameter "requestId" when calling getOrganizationsLimitsChangerequest';return this.apiClient.callApi("/api/v2/organizations/limits/changerequests/{requestId}","GET",{requestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsChangerequests(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/changerequests","GET",{},{after:e.after,before:e.before,status:e.status,pageSize:e.pageSize,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsDocs(){return this.apiClient.callApi("/api/v2/organizations/limits/docs","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsDocsFreetrial(){return this.apiClient.callApi("/api/v2/organizations/limits/docs/freetrial","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespace(e){if(void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespace';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceCounts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceCounts';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/counts","GET",{namespaceName:e},{cursor:i.cursor,entityId:i.entityId,userId:i.userId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceDefaults(e){if(void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceDefaults';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/defaults","GET",{namespaceName:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaceLimitCounts(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "namespaceName" when calling getOrganizationsLimitsNamespaceLimitCounts';if(void 0===i||null===i)throw'Missing the required parameter "limitName" when calling getOrganizationsLimitsNamespaceLimitCounts';return this.apiClient.callApi("/api/v2/organizations/limits/namespaces/{namespaceName}/limits/{limitName}/counts","GET",{namespaceName:e,limitName:i},{entityId:t.entityId,userId:t.userId,cursor:t.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsLimitsNamespaces(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/limits/namespaces","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsMe(){return this.apiClient.callApi("/api/v2/organizations/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrganizationsWhitelist(){return this.apiClient.callApi("/api/v2/organizations/whitelist","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchOrganizationsAuthenticationSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchOrganizationsAuthenticationSettings';return this.apiClient.callApi("/api/v2/organizations/authentication/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchOrganizationsFeature(e,i){if(void 0===e||null===e)throw'Missing the required parameter "featureName" when calling patchOrganizationsFeature';if(void 0===i||null===i)throw'Missing the required parameter "enabled" when calling patchOrganizationsFeature';return this.apiClient.callApi("/api/v2/organizations/features/{featureName}","PATCH",{featureName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsEmbeddedintegration(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsEmbeddedintegration';return this.apiClient.callApi("/api/v2/organizations/embeddedintegration","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsIpaddressauthentication(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsIpaddressauthentication';return this.apiClient.callApi("/api/v2/organizations/ipaddressauthentication","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/organizations/me","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putOrganizationsWhitelist(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';return this.apiClient.callApi("/api/v2/organizations/whitelist","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class pe{constructor(e){this.apiClient=e||w.instance}deleteOrgauthorizationTrustee(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","DELETE",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroup';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeGroupRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling deleteOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","DELETE",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrusteeUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling deleteOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","DELETE",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustees(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","DELETE",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling deleteOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","DELETE",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling deleteOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling deleteOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","DELETE",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrgauthorizationTrustors(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOrgauthorizationTrustors';return this.apiClient.callApi("/api/v2/orgauthorization/trustors","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationPairing(e){if(void 0===e||null===e)throw'Missing the required parameter "pairingId" when calling getOrgauthorizationPairing';return this.apiClient.callApi("/api/v2/orgauthorization/pairings/{pairingId}","GET",{pairingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustee(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeClonedusers(e){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/clonedusers","GET",{trusteeOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroup';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroupRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling getOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","GET",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","GET",{trusteeOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","GET",{trusteeOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteeUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling getOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","GET",{trusteeOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustees(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteesCare(){return this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrusteesDefault(){return this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustor(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustor';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorClonedusers(e){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorClonedusers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers","GET",{trustorOrgId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling getOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","GET",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorGroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups","GET",{trustorOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling getOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","GET",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustorUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling getOrgauthorizationTrustorUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users","GET",{trustorOrgId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrgauthorizationTrustors(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustors","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationPairings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationPairings';return this.apiClient.callApi("/api/v2/orgauthorization/pairings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteeGroups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeGroups';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeGroups';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteeUsers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling postOrgauthorizationTrusteeUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteeUsers';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users","POST",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrustees(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustees';return this.apiClient.callApi("/api/v2/orgauthorization/trustees","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrusteesAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesCare(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/care","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire,assignFullAccess:e.assignFullAccess,allowTrustedUserAccess:e.allowTrustedUserAccess},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrusteesDefault(e){return e=e||{},this.apiClient.callApi("/api/v2/orgauthorization/trustees/default","POST",{},{assignDefaultRole:e.assignDefaultRole,autoExpire:e.autoExpire},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOrgauthorizationTrustorAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOrgauthorizationTrustorAudits';return this.apiClient.callApi("/api/v2/orgauthorization/trustor/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustee(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrustee';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOrgauthorizationTrustee';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}","PUT",{trusteeOrgId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeGroupRoledivisions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoledivisions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roledivisions","PUT",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeGroupRoles(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeGroupRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeGroupId" when calling putOrgauthorizationTrusteeGroupRoles';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeGroupRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/groups/{trusteeGroupId}/roles","PUT",{trusteeOrgId:e,trusteeGroupId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeUserRoledivisions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoledivisions';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoledivisions';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roledivisions","PUT",{trusteeOrgId:e,trusteeUserId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrusteeUserRoles(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "trusteeOrgId" when calling putOrgauthorizationTrusteeUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrusteeUserRoles';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOrgauthorizationTrusteeUserRoles';return this.apiClient.callApi("/api/v2/orgauthorization/trustees/{trusteeOrgId}/users/{trusteeUserId}/roles","PUT",{trusteeOrgId:e,trusteeUserId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorCloneduser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorCloneduser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorCloneduser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/clonedusers/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorGroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorGroup';if(void 0===i||null===i)throw'Missing the required parameter "trustorGroupId" when calling putOrgauthorizationTrustorGroup';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/groups/{trustorGroupId}","PUT",{trustorOrgId:e,trustorGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putOrgauthorizationTrustorUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trustorOrgId" when calling putOrgauthorizationTrustorUser';if(void 0===i||null===i)throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';return this.apiClient.callApi("/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}","PUT",{trustorOrgId:e,trusteeUserId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class ue{constructor(e){this.apiClient=e||w.instance}deleteOutboundAttemptlimit(e){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling deleteOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","DELETE",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCallabletimeset(e){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling deleteOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","DELETE",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCallanalysisresponseset(e){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling deleteOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","DELETE",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundCampaignrule(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling deleteOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","DELETE",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlist(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","DELETE",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling deleteOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","DELETE",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistContacts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling deleteOutboundContactlistContacts';if(void 0===i||null===i)throw'Missing the required parameter "contactIds" when calling deleteOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","DELETE",{contactListId:e},{contactIds:this.apiClient.buildCollectionParam(i,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlistfilter(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling deleteOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","DELETE",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlists(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlisttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling deleteOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","DELETE",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundContactlisttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDigitalruleset(e){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling deleteOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","DELETE",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclist(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","DELETE",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistCustomexclusioncolumns(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistEmailaddresses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundDnclistPhonenumbers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling deleteOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","DELETE",{dncListId:e},{expiredOnly:i.expiredOnly},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundFilespecificationtemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling deleteOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","DELETE",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundFilespecificationtemplatesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundFilespecificationtemplatesBulk';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/bulk","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundImporttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling deleteOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","DELETE",{importTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundImporttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling deleteOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","DELETE",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundMessagingcampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundRuleset(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling deleteOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","DELETE",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling deleteOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","DELETE",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesEmailcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling deleteOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","DELETE",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling deleteOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","DELETE",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSchedulesSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling deleteOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOutboundSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling deleteOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","DELETE",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundAttemptlimit(e){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling getOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","GET",{attemptLimitsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundAttemptlimits(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/attemptlimits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallabletimeset(e){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling getOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","GET",{callableTimeSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallabletimesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callabletimesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallanalysisresponseset(e){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling getOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","GET",{callAnalysisSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCallanalysisresponsesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignAgentownedmappingpreviewResults(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignAgentownedmappingpreviewResults';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview/results","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignDiagnostics(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/diagnostics","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignInteractions(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignInteractions';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/interactions","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignLinedistribution(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignLinedistribution';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/linedistribution","GET",{campaignId:e},{includeOnlyActiveCampaigns:i.includeOnlyActiveCampaigns,edgeGroupId:i.edgeGroupId,siteId:i.siteId,useWeight:i.useWeight,relativeWeight:i.relativeWeight,outboundLineCount:i.outboundLineCount},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/progress","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignSkillcombinations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignSkillcombinations';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/skillcombinations","GET",{campaignId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignStats(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignStats';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stats","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignrule(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling getOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","GET",{campaignRuleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignrules(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaignrules","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),contactListId:e.contactListId,dncListIds:e.dncListIds,distributionQueueId:e.distributionQueueId,edgeGroupId:e.edgeGroupId,callAnalysisResponseSetId:e.callAnalysisResponseSetId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsAllDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/all/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),mediaType:this.apiClient.buildCollectionParam(e.mediaType,"multi"),sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundCampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundCampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/campaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlist(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","GET",{contactListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContact(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling getOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","GET",{contactListId:e,contactId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContactsBulkJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getOutboundContactlistContactsBulkJob';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs/{jobId}","GET",{contactListId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistContactsBulkJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistContactsBulkJobs';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/jobs","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","GET",{contactListId:e},{download:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistImportstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistImportstatus';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/importstatus","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistTimezonemappingpreview(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistTimezonemappingpreview';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/timezonemappingpreview","GET",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistfilter(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling getOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","GET",{contactListFilterId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistfilters(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlistfilters","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListId:e.contactListId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistsDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling getOutboundContactlistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews/{contactListId}","GET",{contactListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlisttemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling getOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","GET",{contactListTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundContactlisttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDigitalruleset(e){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling getOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","GET",{digitalRuleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDigitalrulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/digitalrulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclist(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","GET",{dncListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","GET",{dncListId:e},{download:i.download},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistImportstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistImportstatus';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/importstatus","GET",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclists(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistsDivisionview(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling getOutboundDnclistsDivisionview';return this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews/{dncListId}","GET",{dncListId:e},{includeImportStatus:i.includeImportStatus,includeSize:i.includeSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundDnclistsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/dnclists/divisionviews","GET",{},{includeImportStatus:e.includeImportStatus,includeSize:e.includeSize,pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,name:e.name,dncSourceType:e.dncSourceType,id:this.apiClient.buildCollectionParam(e.id,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundEvent(e){if(void 0===e||null===e)throw'Missing the required parameter "eventId" when calling getOutboundEvent';return this.apiClient.callApi("/api/v2/outbound/events/{eventId}","GET",{eventId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundEvents(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/events","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,filterType:e.filterType,category:e.category,level:e.level,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundFilespecificationtemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling getOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","GET",{fileSpecificationTemplateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundFilespecificationtemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","GET",{importTemplateId:e},{includeImportStatus:i.includeImportStatus},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplateImportstatus(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling getOutboundImporttemplateImportstatus';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}/importstatus","GET",{importTemplateId:e},{listNamePrefix:i.listNamePrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundImporttemplates(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/importtemplates","GET",{},{includeImportStatus:e.includeImportStatus,pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder,contactListTemplateId:e.contactListTemplateId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignDiagnostics(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignDiagnostics';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/diagnostics","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/progress","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaigns(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,contactListId:e.contactListId,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),type:e.type,senderSmsPhoneNumber:e.senderSmsPhoneNumber,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignsDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundMessagingcampaignsDivisionview';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundMessagingcampaignsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,type:e.type,id:this.apiClient.buildCollectionParam(e.id,"multi"),senderSmsPhoneNumber:e.senderSmsPhoneNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundRuleset(e){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling getOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","GET",{ruleSetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundRulesets(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/rulesets","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesCampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling getOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","GET",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesCampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesEmailcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling getOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","GET",{emailCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesEmailcampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesMessagingcampaign(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling getOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","GET",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesMessagingcampaigns(){return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling getOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSchedulesSequences(){return this.apiClient.callApi("/api/v2/outbound/schedules/sequences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSequence(e){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling getOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","GET",{sequenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSequences(e){return e=e||{},this.apiClient.callApi("/api/v2/outbound/sequences","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,allowEmptyResult:e.allowEmptyResult,filterType:e.filterType,name:e.name,sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundSettings(){return this.apiClient.callApi("/api/v2/outbound/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOutboundWrapupcodemappings(){return this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling patchOutboundCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PATCH",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistCustomexclusioncolumns(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistCustomexclusioncolumns';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistCustomexclusioncolumns';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/customexclusioncolumns","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistEmailaddresses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistEmailaddresses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundDnclistPhonenumbers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling patchOutboundDnclistPhonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","PATCH",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchOutboundSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchOutboundSettings';return this.apiClient.callApi("/api/v2/outbound/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundAttemptlimits(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundAttemptlimits';return this.apiClient.callApi("/api/v2/outbound/attemptlimits","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCallabletimesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCallabletimesets';return this.apiClient.callApi("/api/v2/outbound/callabletimesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCallanalysisresponsesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCallanalysisresponsesets';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignAgentownedmappingpreview(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignAgentownedmappingpreview';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agentownedmappingpreview","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignCallbackSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignCallbackSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundCampaignCallbackSchedule';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/callback/schedule","POST",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignStart(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStart';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/start","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignStop(e){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling postOutboundCampaignStop';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/stop","POST",{campaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignrules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaignrules';return this.apiClient.callApi("/api/v2/outbound/campaignrules","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaigns(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaigns';return this.apiClient.callApi("/api/v2/outbound/campaigns","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundCampaignsProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundCampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/campaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistClear(e){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistClear';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/clear","POST",{contactListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContacts(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContacts';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContacts';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts","POST",{contactListId:e},{priority:t.priority,clearSystemData:t.clearSystemData,doNotQueue:t.doNotQueue},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulk';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulkRemove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkRemove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkRemove';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsBulkUpdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsBulkUpdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsBulkUpdate';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/update","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistContactsSearch(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistContactsSearch';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundContactlistContactsSearch';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/search","POST",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling postOutboundContactlistExport';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/export","POST",{contactListId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfilters(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfilters';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfiltersBulkRetrieve(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlistfiltersPreview(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlistfiltersPreview';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/preview","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlists(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlists';return this.apiClient.callApi("/api/v2/outbound/contactlists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplates';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplatesBulkAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundContactlisttemplatesBulkRetrieve(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundContactlisttemplatesBulkRetrieve';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/bulk/retrieve","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundConversationDnc(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postOutboundConversationDnc';return this.apiClient.callApi("/api/v2/outbound/conversations/{conversationId}/dnc","POST",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDigitalrulesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundDigitalrulesets';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistEmailaddresses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistEmailaddresses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundDnclistEmailaddresses';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/emailaddresses","POST",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistExport(e){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistExport';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/export","POST",{dncListId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclistPhonenumbers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling postOutboundDnclistPhonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOutboundDnclistPhonenumbers';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}/phonenumbers","POST",{dncListId:e},{expirationDateTime:t.expirationDateTime},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundDnclists(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundDnclists';return this.apiClient.callApi("/api/v2/outbound/dnclists","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundFilespecificationtemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundFilespecificationtemplates';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundImporttemplates(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundImporttemplates';return this.apiClient.callApi("/api/v2/outbound/importtemplates","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundImporttemplatesBulkAdd(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundImporttemplatesBulkAdd';return this.apiClient.callApi("/api/v2/outbound/importtemplates/bulk/add","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignStart(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStart';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/start","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignStop(e){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling postOutboundMessagingcampaignStop';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}/stop","POST",{messagingCampaignId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaigns(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaigns';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundMessagingcampaignsProgress(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundMessagingcampaignsProgress';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/progress","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundRulesets(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundRulesets';return this.apiClient.callApi("/api/v2/outbound/rulesets","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postOutboundSequences(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundSequences';return this.apiClient.callApi("/api/v2/outbound/sequences","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundAttemptlimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "attemptLimitsId" when calling putOutboundAttemptlimit';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundAttemptlimit';return this.apiClient.callApi("/api/v2/outbound/attemptlimits/{attemptLimitsId}","PUT",{attemptLimitsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCallabletimeset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "callableTimeSetId" when calling putOutboundCallabletimeset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCallabletimeset';return this.apiClient.callApi("/api/v2/outbound/callabletimesets/{callableTimeSetId}","PUT",{callableTimeSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCallanalysisresponseset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "callAnalysisSetId" when calling putOutboundCallanalysisresponseset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCallanalysisresponseset';return this.apiClient.callApi("/api/v2/outbound/callanalysisresponsesets/{callAnalysisSetId}","PUT",{callAnalysisSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCampaign';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaignAgent(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundCampaignAgent';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling putOutboundCampaignAgent';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOutboundCampaignAgent';return this.apiClient.callApi("/api/v2/outbound/campaigns/{campaignId}/agents/{userId}","PUT",{campaignId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundCampaignrule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignRuleId" when calling putOutboundCampaignrule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundCampaignrule';return this.apiClient.callApi("/api/v2/outbound/campaignrules/{campaignRuleId}","PUT",{campaignRuleId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlist(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling putOutboundContactlist';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlist';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}","PUT",{contactListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlistContact(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "contactListId" when calling putOutboundContactlistContact';if(void 0===i||null===i)throw'Missing the required parameter "contactId" when calling putOutboundContactlistContact';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putOutboundContactlistContact';return this.apiClient.callApi("/api/v2/outbound/contactlists/{contactListId}/contacts/{contactId}","PUT",{contactListId:e,contactId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlistfilter(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListFilterId" when calling putOutboundContactlistfilter';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlistfilter';return this.apiClient.callApi("/api/v2/outbound/contactlistfilters/{contactListFilterId}","PUT",{contactListFilterId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundContactlisttemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "contactListTemplateId" when calling putOutboundContactlisttemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundContactlisttemplate';return this.apiClient.callApi("/api/v2/outbound/contactlisttemplates/{contactListTemplateId}","PUT",{contactListTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundDigitalruleset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "digitalRuleSetId" when calling putOutboundDigitalruleset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundDigitalruleset';return this.apiClient.callApi("/api/v2/outbound/digitalrulesets/{digitalRuleSetId}","PUT",{digitalRuleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundDnclist(e,i){if(void 0===e||null===e)throw'Missing the required parameter "dncListId" when calling putOutboundDnclist';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundDnclist';return this.apiClient.callApi("/api/v2/outbound/dnclists/{dncListId}","PUT",{dncListId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundFilespecificationtemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "fileSpecificationTemplateId" when calling putOutboundFilespecificationtemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundFilespecificationtemplate';return this.apiClient.callApi("/api/v2/outbound/filespecificationtemplates/{fileSpecificationTemplateId}","PUT",{fileSpecificationTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundImporttemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "importTemplateId" when calling putOutboundImporttemplate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundImporttemplate';return this.apiClient.callApi("/api/v2/outbound/importtemplates/{importTemplateId}","PUT",{importTemplateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundMessagingcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling putOutboundMessagingcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundRuleset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "ruleSetId" when calling putOutboundRuleset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundRuleset';return this.apiClient.callApi("/api/v2/outbound/rulesets/{ruleSetId}","PUT",{ruleSetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesCampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "campaignId" when calling putOutboundSchedulesCampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesCampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/campaigns/{campaignId}","PUT",{campaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesEmailcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "emailCampaignId" when calling putOutboundSchedulesEmailcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesEmailcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/emailcampaigns/{emailCampaignId}","PUT",{emailCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesMessagingcampaign(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messagingCampaignId" when calling putOutboundSchedulesMessagingcampaign';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesMessagingcampaign';return this.apiClient.callApi("/api/v2/outbound/schedules/messagingcampaigns/{messagingCampaignId}","PUT",{messagingCampaignId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSchedulesSequence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling putOutboundSchedulesSequence';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSchedulesSequence';return this.apiClient.callApi("/api/v2/outbound/schedules/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundSequence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sequenceId" when calling putOutboundSequence';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putOutboundSequence';return this.apiClient.callApi("/api/v2/outbound/sequences/{sequenceId}","PUT",{sequenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putOutboundWrapupcodemappings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';return this.apiClient.callApi("/api/v2/outbound/wrapupcodemappings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class de{constructor(e){this.apiClient=e||w.instance}deletePresenceDefinition0(e){if(void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling deletePresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","DELETE",{definitionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deletePresenceSource(e){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling deletePresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","DELETE",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deletePresencedefinition(e){if(void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling deletePresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","DELETE",{presenceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceDefinition0(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling getPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","GET",{definitionId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceDefinitions0(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/definitions","GET",{},{deactivated:e.deactivated,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSettings(){return this.apiClient.callApi("/api/v2/presence/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSource(e){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling getPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","GET",{sourceId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceSources(e){return e=e||{},this.apiClient.callApi("/api/v2/presence/sources","GET",{},{deactivated:e.deactivated},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresenceUserPrimarysource(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresencedefinition(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling getPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","GET",{presenceId:e},{localeCode:i.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getPresencedefinitions(e){return e=e||{},this.apiClient.callApi("/api/v2/presencedefinitions","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,deleted:e.deleted,localeCode:e.localeCode},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSystempresences(){return this.apiClient.callApi("/api/v2/systempresences","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserPresence(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserPresence';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling getUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","GET",{userId:e,sourceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserPresencesPurecloud(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersPresenceBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling getUsersPresenceBulk';return this.apiClient.callApi("/api/v2/users/presences/{sourceId}/bulk","GET",{sourceId:e},{id:this.apiClient.buildCollectionParam(i.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersPresencesPurecloudBulk(e){return e=e||{},this.apiClient.callApi("/api/v2/users/presences/purecloud/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserPresence(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserPresence';if(void 0===i||null===i)throw'Missing the required parameter "sourceId" when calling patchUserPresence';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserPresence';return this.apiClient.callApi("/api/v2/users/{userId}/presences/{sourceId}","PATCH",{userId:e,sourceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserPresencesPurecloud(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserPresencesPurecloud';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserPresencesPurecloud';return this.apiClient.callApi("/api/v2/users/{userId}/presences/purecloud","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postPresenceDefinitions0(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresenceDefinitions0';return this.apiClient.callApi("/api/v2/presence/definitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postPresenceSources(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresenceSources';return this.apiClient.callApi("/api/v2/presence/sources","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postPresencedefinitions(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postPresencedefinitions';return this.apiClient.callApi("/api/v2/presencedefinitions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceDefinition0(e,i){if(void 0===e||null===e)throw'Missing the required parameter "definitionId" when calling putPresenceDefinition0';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceDefinition0';return this.apiClient.callApi("/api/v2/presence/definitions/{definitionId}","PUT",{definitionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putPresenceSettings';return this.apiClient.callApi("/api/v2/presence/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceSource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sourceId" when calling putPresenceSource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceSource';return this.apiClient.callApi("/api/v2/presence/sources/{sourceId}","PUT",{sourceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresenceUserPrimarysource(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putPresenceUserPrimarysource';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresenceUserPrimarysource';return this.apiClient.callApi("/api/v2/presence/users/{userId}/primarysource","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putPresencedefinition(e,i){if(void 0===e||null===e)throw'Missing the required parameter "presenceId" when calling putPresencedefinition';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putPresencedefinition';return this.apiClient.callApi("/api/v2/presencedefinitions/{presenceId}","PUT",{presenceId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersPresencesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putUsersPresencesBulk';return this.apiClient.callApi("/api/v2/users/presences/bulk","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ce{constructor(e){this.apiClient=e||w.instance}deleteProcessautomationTrigger(e){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling deleteProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","DELETE",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTrigger(e){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling getProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","GET",{triggerId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTriggers(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize,topicName:e.topicName,enabled:e.enabled,hasDelayBy:e.hasDelayBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProcessautomationTriggersTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/processautomation/triggers/topics","GET",{},{before:e.before,after:e.after,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggerTest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling postProcessautomationTriggerTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}/test","POST",{triggerId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postProcessautomationTriggers';return this.apiClient.callApi("/api/v2/processautomation/triggers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postProcessautomationTriggersTopicTest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicName" when calling postProcessautomationTriggersTopicTest';return this.apiClient.callApi("/api/v2/processautomation/triggers/topics/{topicName}/test","POST",{topicName:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putProcessautomationTrigger(e,i){if(void 0===e||null===e)throw'Missing the required parameter "triggerId" when calling putProcessautomationTrigger';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putProcessautomationTrigger';return this.apiClient.callApi("/api/v2/processautomation/triggers/{triggerId}","PUT",{triggerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class ge{constructor(e){this.apiClient=e||w.instance}deleteQualityCalibration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling deleteQualityCalibration';if(void 0===i||null===i)throw'Missing the required parameter "calibratorId" when calling deleteQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","DELETE",{calibrationId:e},{calibratorId:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityConversationEvaluation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling deleteQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","DELETE",{conversationId:e,evaluationId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityForm(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityFormsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteQualityFormsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling deleteQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","DELETE",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsEvaluationsAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsEvaluationsAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsSurveysAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsSurveysAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityAgentsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/agents/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,agentUserId:this.apiClient.buildCollectionParam(e.agentUserId,"multi"),evaluatorUserId:e.evaluatorUserId,name:e.name,group:e.group,agentTeamId:e.agentTeamId,formContextId:e.formContextId,userState:e.userState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityCalibration(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling getQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","GET",{calibrationId:e},{calibratorId:i.calibratorId,conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityCalibrations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "calibratorId" when calling getQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","GET",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),nextPage:i.nextPage,previousPage:i.previousPage,conversationId:i.conversationId,startTime:i.startTime,endTime:i.endTime,calibratorId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationEvaluation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling getQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","GET",{conversationId:e,evaluationId:i},{expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getQualityConversationSurveys';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/surveys","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationsAuditsQueryTransactionId(e){if(void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionId';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}","GET",{transactionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityConversationsAuditsQueryTransactionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "transactionId" when calling getQualityConversationsAuditsQueryTransactionIdResults';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query/{transactionId}/results","GET",{transactionId:e},{cursor:i.cursor,pageSize:i.pageSize,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityEvaluationsQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluations/query","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),previousPage:e.previousPage,conversationId:e.conversationId,agentUserId:e.agentUserId,agentTeamId:e.agentTeamId,evaluatorUserId:e.evaluatorUserId,assigneeUserId:e.assigneeUserId,queueId:e.queueId,startTime:e.startTime,endTime:e.endTime,formContextId:e.formContextId,evaluationState:this.apiClient.buildCollectionParam(e.evaluationState,"multi"),isReleased:e.isReleased,agentHasRead:e.agentHasRead,expandAnswerTotalScores:e.expandAnswerTotalScores,maximum:e.maximum,sortOrder:e.sortOrder,includeDeletedUsers:e.includeDeletedUsers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityEvaluatorsActivity(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/evaluators/activity","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,startTime:e.startTime,endTime:e.endTime,name:e.name,permission:this.apiClient.buildCollectionParam(e.permission,"multi"),group:e.group,agentTeamId:e.agentTeamId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityForm(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormVersions';return this.apiClient.callApi("/api/v2/quality/forms/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityForms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluationVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsEvaluationVersions';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsEvaluationsBulkContexts(e){if(void 0===e||null===e)throw'Missing the required parameter "contextId" when calling getQualityFormsEvaluationsBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveyVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityFormsSurveyVersions';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}/versions","GET",{formId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/forms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,nextPage:e.nextPage,previousPage:e.previousPage,expand:e.expand,name:e.name,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveysBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "id" when calling getQualityFormsSurveysBulk';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk","GET",{},{id:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityFormsSurveysBulkContexts(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "contextId" when calling getQualityFormsSurveysBulkContexts';return this.apiClient.callApi("/api/v2/quality/forms/surveys/bulk/contexts","GET",{},{contextId:this.apiClient.buildCollectionParam(e,"multi"),published:i.published},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedform(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedform';return this.apiClient.callApi("/api/v2/quality/publishedforms/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedforms(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsEvaluation(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedformsEvaluation';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsEvaluations(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestPerContext:e.onlyLatestPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsSurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling getQualityPublishedformsSurvey';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys/{formId}","GET",{formId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualityPublishedformsSurveys(e){return e=e||{},this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,onlyLatestEnabledPerContext:e.onlyLatestEnabledPerContext},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualitySurvey(e){if(void 0===e||null===e)throw'Missing the required parameter "surveyId" when calling getQualitySurvey';return this.apiClient.callApi("/api/v2/quality/surveys/{surveyId}","GET",{surveyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getQualitySurveysScorable(e){if(void 0===e||null===e)throw'Missing the required parameter "customerSurveyUrl" when calling getQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","GET",{},{customerSurveyUrl:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchQualityFormsSurvey(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling patchQualityFormsSurvey';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PATCH",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsEvaluationsAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsEvaluationsAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/evaluations/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsSurveysAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsSurveysAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/surveys/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityCalibrations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityCalibrations';return this.apiClient.callApi("/api/v2/quality/calibrations","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityConversationEvaluations(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postQualityConversationEvaluations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postQualityConversationEvaluations';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations","POST",{conversationId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityConversationsAuditsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityConversationsAuditsQuery';return this.apiClient.callApi("/api/v2/quality/conversations/audits/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityEvaluationsAggregatesQueryMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityEvaluationsAggregatesQueryMe';return this.apiClient.callApi("/api/v2/quality/evaluations/aggregates/query/me","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityEvaluationsScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityEvaluationsScoring';return this.apiClient.callApi("/api/v2/quality/evaluations/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityForms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityForms';return this.apiClient.callApi("/api/v2/quality/forms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityFormsEvaluations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityFormsEvaluations';return this.apiClient.callApi("/api/v2/quality/forms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityFormsSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityFormsSurveys';return this.apiClient.callApi("/api/v2/quality/forms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedforms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedforms';return this.apiClient.callApi("/api/v2/quality/publishedforms","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedformsEvaluations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedformsEvaluations';return this.apiClient.callApi("/api/v2/quality/publishedforms/evaluations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualityPublishedformsSurveys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualityPublishedformsSurveys';return this.apiClient.callApi("/api/v2/quality/publishedforms/surveys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postQualitySurveysScoring(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postQualitySurveysScoring';return this.apiClient.callApi("/api/v2/quality/surveys/scoring","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityCalibration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "calibrationId" when calling putQualityCalibration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityCalibration';return this.apiClient.callApi("/api/v2/quality/calibrations/{calibrationId}","PUT",{calibrationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityConversationEvaluation(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putQualityConversationEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "evaluationId" when calling putQualityConversationEvaluation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putQualityConversationEvaluation';return this.apiClient.callApi("/api/v2/quality/conversations/{conversationId}/evaluations/{evaluationId}","PUT",{conversationId:e,evaluationId:i},{expand:n.expand},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityForm(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityForm';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityForm';return this.apiClient.callApi("/api/v2/quality/forms/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsEvaluation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsEvaluation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsEvaluation';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsEvaluationAiscoringSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsEvaluationAiscoringSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsEvaluationAiscoringSettings';return this.apiClient.callApi("/api/v2/quality/forms/evaluations/{formId}/aiscoring/settings","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualityFormsSurvey(e,i){if(void 0===e||null===e)throw'Missing the required parameter "formId" when calling putQualityFormsSurvey';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualityFormsSurvey';return this.apiClient.callApi("/api/v2/quality/forms/surveys/{formId}","PUT",{formId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putQualitySurveysScorable(e,i){if(void 0===e||null===e)throw'Missing the required parameter "customerSurveyUrl" when calling putQualitySurveysScorable';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putQualitySurveysScorable';return this.apiClient.callApi("/api/v2/quality/surveys/scorable","PUT",{},{customerSurveyUrl:e},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class he{constructor(e){this.apiClient=e||w.instance}deleteConversationRecordingAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling deleteConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling deleteConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","DELETE",{conversationId:e,recordingId:i,annotationId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteOrphanrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling deleteOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","DELETE",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingCrossplatformMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "ids" when calling deleteRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingCrossplatformMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling deleteRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "ids" when calling deleteRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","DELETE",{},{ids:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRecordingMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling deleteRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","DELETE",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecording(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecording';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","GET",{conversationId:e,recordingId:i},{formatId:t.formatId,emailFormatId:t.emailFormatId,chatFormatId:t.chatFormatId,messageFormatId:t.messageFormatId,download:t.download,fileName:t.fileName,locale:t.locale,mediaFormats:this.apiClient.buildCollectionParam(t.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingAnnotation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling getConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","GET",{conversationId:e,recordingId:i,annotationId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingAnnotations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingmetadata(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadata';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordingmetadataRecordingId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordingmetadataRecordingId';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling getConversationRecordingmetadataRecordingId';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}","GET",{conversationId:e,recordingId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getConversationRecordings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getConversationRecordings';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings","GET",{conversationId:e},{maxWaitMs:i.maxWaitMs,formatId:i.formatId,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling getOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","GET",{orphanId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecordingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling getOrphanrecordingMedia';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}/media","GET",{orphanId:e},{formatId:i.formatId,emailFormatId:i.emailFormatId,chatFormatId:i.chatFormatId,messageFormatId:i.messageFormatId,download:i.download,fileName:i.fileName,locale:i.locale,mediaFormats:this.apiClient.buildCollectionParam(i.mediaFormats,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOrphanrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/orphanrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,hasConversation:e.hasConversation,media:e.media},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingBatchrequest(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingBatchrequest';return this.apiClient.callApi("/api/v2/recording/batchrequests/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingCrossplatformMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingCrossplatformMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling getRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJobFailedrecordings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRecordingJobFailedrecordings';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}/failedrecordings","GET",{jobId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,includeTotal:i.includeTotal,cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/jobs","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,state:e.state,showOnlyMyJobs:e.showOnlyMyJobs,jobType:e.jobType,includeTotal:e.includeTotal,cursor:e.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingKeyconfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "keyConfigurationId" when calling getRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","GET",{keyConfigurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingKeyconfigurations(){return this.apiClient.callApi("/api/v2/recording/keyconfigurations","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingMediaretentionpolicies(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,previousPage:e.previousPage,name:e.name,enabled:e.enabled,summary:e.summary,hasErrors:e.hasErrors,deleteDaysThreshold:e.deleteDaysThreshold},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingMediaretentionpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling getRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","GET",{policyId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingRecordingkeys(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/recordingkeys","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingRecordingkeysRotationschedule(){return this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/recording/settings","GET",{},{createDefault:e.createDefault},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingUploadsReport(e){if(void 0===e||null===e)throw'Missing the required parameter "reportId" when calling getRecordingUploadsReport';return this.apiClient.callApi("/api/v2/recording/uploads/reports/{reportId}","GET",{reportId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsRetentionQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "retentionThresholdDays" when calling getRecordingsRetentionQuery';return this.apiClient.callApi("/api/v2/recordings/retention/query","GET",{},{retentionThresholdDays:e,cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsScreensessions(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/screensessions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRecordingsScreensessionsDetails(){return this.apiClient.callApi("/api/v2/recordings/screensessions/details","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingCrossplatformMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling patchRecordingCrossplatformMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling patchRecordingMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PATCH",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRecordingsScreensession(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingSessionId" when calling patchRecordingsScreensession';return this.apiClient.callApi("/api/v2/recordings/screensessions/{recordingSessionId}","PATCH",{recordingSessionId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationRecordingAnnotations(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postConversationRecordingAnnotations';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling postConversationRecordingAnnotations';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postConversationRecordingAnnotations';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations","POST",{conversationId:e,recordingId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingBatchrequests(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingBatchrequests';return this.apiClient.callApi("/api/v2/recording/batchrequests","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingCrossplatformMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingCrossplatformMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingJobs';return this.apiClient.callApi("/api/v2/recording/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingKeyconfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurations';return this.apiClient.callApi("/api/v2/recording/keyconfigurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingKeyconfigurationsValidate(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingKeyconfigurationsValidate';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/validate","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingLocalkeys(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingLocalkeys';return this.apiClient.callApi("/api/v2/recording/localkeys","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingMediaretentionpolicies(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingMediaretentionpolicies';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingRecordingkeys(){return this.apiClient.callApi("/api/v2/recording/recordingkeys","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingUploadsReports(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingUploadsReports';return this.apiClient.callApi("/api/v2/recording/uploads/reports","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsDeletionprotection(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsDeletionprotection';return this.apiClient.callApi("/api/v2/recordings/deletionprotection","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsScreensessionsAcknowledge(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsAcknowledge';return this.apiClient.callApi("/api/v2/recordings/screensessions/acknowledge","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRecordingsScreensessionsMetadata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRecordingsScreensessionsMetadata';return this.apiClient.callApi("/api/v2/recordings/screensessions/metadata","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationRecording(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationRecording';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling putConversationRecording';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putConversationRecording';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}","PUT",{conversationId:e,recordingId:i},{clearExport:n.clearExport},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putConversationRecordingAnnotation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling putConversationRecordingAnnotation';if(void 0===i||null===i)throw'Missing the required parameter "recordingId" when calling putConversationRecordingAnnotation';if(void 0===t||null===t)throw'Missing the required parameter "annotationId" when calling putConversationRecordingAnnotation';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling putConversationRecordingAnnotation';return this.apiClient.callApi("/api/v2/conversations/{conversationId}/recordings/{recordingId}/annotations/{annotationId}","PUT",{conversationId:e,recordingId:i,annotationId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}putOrphanrecording(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "orphanId" when calling putOrphanrecording';return this.apiClient.callApi("/api/v2/orphanrecordings/{orphanId}","PUT",{orphanId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingCrossplatformMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling putRecordingCrossplatformMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingCrossplatformMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/crossplatform/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling putRecordingJob';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingJob';return this.apiClient.callApi("/api/v2/recording/jobs/{jobId}","PUT",{jobId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingKeyconfiguration(e,i){if(void 0===e||null===e)throw'Missing the required parameter "keyConfigurationId" when calling putRecordingKeyconfiguration';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingKeyconfiguration';return this.apiClient.callApi("/api/v2/recording/keyconfigurations/{keyConfigurationId}","PUT",{keyConfigurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingMediaretentionpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "policyId" when calling putRecordingMediaretentionpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRecordingMediaretentionpolicy';return this.apiClient.callApi("/api/v2/recording/mediaretentionpolicies/{policyId}","PUT",{policyId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingRecordingkeysRotationschedule(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRecordingRecordingkeysRotationschedule';return this.apiClient.callApi("/api/v2/recording/recordingkeys/rotationschedule","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRecordingSettings';return this.apiClient.callApi("/api/v2/recording/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRecordingsDeletionprotection(e){return e=e||{},this.apiClient.callApi("/api/v2/recordings/deletionprotection","PUT",{},{protect:e.protect},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class me{constructor(e){this.apiClient=e||w.instance}deleteResponsemanagementLibrary(e){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling deleteResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","DELETE",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteResponsemanagementResponse(e){if(void 0===e||null===e)throw'Missing the required parameter "responseId" when calling deleteResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","DELETE",{responseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteResponsemanagementResponseasset(e){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling deleteResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","DELETE",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementLibraries(e){return e=e||{},this.apiClient.callApi("/api/v2/responsemanagement/libraries","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,messagingTemplateFilter:e.messagingTemplateFilter,libraryPrefix:e.libraryPrefix},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementLibrary(e){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling getResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","GET",{libraryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponse(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "responseId" when calling getResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","GET",{responseId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponseasset(e){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling getResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","GET",{responseAssetId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponseassetsStatusStatusId(e){if(void 0===e||null===e)throw'Missing the required parameter "statusId" when calling getResponsemanagementResponseassetsStatusStatusId';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/status/{statusId}","GET",{statusId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getResponsemanagementResponses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling getResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","GET",{},{libraryId:e,pageNumber:i.pageNumber,pageSize:i.pageSize,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementLibraries(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementLibraries';return this.apiClient.callApi("/api/v2/responsemanagement/libraries","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementLibrariesBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementLibrariesBulk';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/bulk","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponseassetsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsSearch';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/search","POST",{},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponseassetsUploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponseassetsUploads';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/uploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponses';return this.apiClient.callApi("/api/v2/responsemanagement/responses","POST",{},{expand:i.expand},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postResponsemanagementResponsesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postResponsemanagementResponsesQuery';return this.apiClient.callApi("/api/v2/responsemanagement/responses/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementLibrary(e,i){if(void 0===e||null===e)throw'Missing the required parameter "libraryId" when calling putResponsemanagementLibrary';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementLibrary';return this.apiClient.callApi("/api/v2/responsemanagement/libraries/{libraryId}","PUT",{libraryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementResponse(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "responseId" when calling putResponsemanagementResponse';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementResponse';return this.apiClient.callApi("/api/v2/responsemanagement/responses/{responseId}","PUT",{responseId:e},{expand:t.expand},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putResponsemanagementResponseasset(e,i){if(void 0===e||null===e)throw'Missing the required parameter "responseAssetId" when calling putResponsemanagementResponseasset';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';return this.apiClient.callApi("/api/v2/responsemanagement/responseassets/{responseAssetId}","PUT",{responseAssetId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class we{constructor(e){this.apiClient=e||w.instance}deleteRoutingAssessment(e){if(void 0===e||null===e)throw'Missing the required parameter "assessmentId" when calling deleteRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","DELETE",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailDomainRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling deleteRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling deleteRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","DELETE",{domainName:e,routeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingEmailOutboundDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling deleteRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","DELETE",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling deleteRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","DELETE",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling deleteRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","DELETE",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueue(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","DELETE",{queueId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueUser';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","DELETE",{queueId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingQueueWrapupcode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling deleteRoutingQueueWrapupcode';if(void 0===i||null===i)throw'Missing the required parameter "codeId" when calling deleteRoutingQueueWrapupcode';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes/{codeId}","DELETE",{queueId:e,codeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSettings(){return this.apiClient.callApi("/api/v2/routing/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSkill(e){if(void 0===e||null===e)throw'Missing the required parameter "skillId" when calling deleteRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","DELETE",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSkillgroup(e){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling deleteRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","DELETE",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSmsAddress(e){if(void 0===e||null===e)throw'Missing the required parameter "addressId" when calling deleteRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","DELETE",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingSmsPhonenumber(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling deleteRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","DELETE",{phoneNumberId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilization(){return this.apiClient.callApi("/api/v2/routing/utilization","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilizationLabel(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "labelId" when calling deleteRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","DELETE",{labelId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUtilizationTag(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "tagId" when calling deleteRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","DELETE",{tagId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingWrapupcode(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling deleteRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","DELETE",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutinglanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutingskill(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessment(e){if(void 0===e||null===e)throw'Missing the required parameter "assessmentId" when calling getRoutingAssessment';return this.apiClient.callApi("/api/v2/routing/assessments/{assessmentId}","GET",{assessmentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessmentsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getRoutingAssessmentsJob';return this.apiClient.callApi("/api/v2/routing/assessments/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingAvailablemediatypes(){return this.apiClient.callApi("/api/v2/routing/availablemediatypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomainRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling getRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","GET",{domainName:e,routeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomainRoutes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainName" when calling getRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","GET",{domainName:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,pattern:i.pattern},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/domains","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,excludeStatus:e.excludeStatus,filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomain(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomain';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomainActivation(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomainSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling getRoutingEmailOutboundDomainSearch';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/search","GET",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailOutboundDomains(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/email/outbound/domains","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingEmailSetup(){return this.apiClient.callApi("/api/v2/routing/email/setup","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingLanguage(e){if(void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getRoutingLanguage';return this.apiClient.callApi("/api/v2/routing/languages/{languageId}","GET",{languageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingLanguages(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/languages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingMessageRecipient(e){if(void 0===e||null===e)throw'Missing the required parameter "recipientId" when calling getRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","GET",{recipientId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingMessageRecipients(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/message/recipients","GET",{},{messengerType:e.messengerType,name:e.name,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictor(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorModelFeatures(e,i){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModelFeatures';if(void 0===i||null===i)throw'Missing the required parameter "modelId" when calling getRoutingPredictorModelFeatures';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models/{modelId}/features","GET",{predictorId:e,modelId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorModels(e){if(void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling getRoutingPredictorModels';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}/models","GET",{predictorId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","GET",{},{before:e.before,after:e.after,limit:e.limit,pageSize:e.pageSize,queueId:this.apiClient.buildCollectionParam(e.queueId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingPredictorsKeyperformanceindicators(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors/keyperformanceindicators","GET",{},{kpiGroup:e.kpiGroup,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueue(e){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueAssistant(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueAssistant';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/assistant","GET",{queueId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueComparisonperiod(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiod';if(void 0===i||null===i)throw'Missing the required parameter "comparisonPeriodId" when calling getRoutingQueueComparisonperiod';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods/{comparisonPeriodId}","GET",{queueId:e,comparisonPeriodId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueComparisonperiods(e){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueComparisonperiods';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/comparisonperiods","GET",{queueId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueEstimatedwaittime(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/estimatedwaittime","GET",{queueId:e},{conversationId:i.conversationId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueMediatypeEstimatedwaittime(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueMediatypeEstimatedwaittime';if(void 0===i||null===i)throw'Missing the required parameter "mediaType" when calling getRoutingQueueMediatypeEstimatedwaittime';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/mediatypes/{mediaType}/estimatedwaittime","GET",{queueId:e,mediaType:i},{labelId:t.labelId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","GET",{queueId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi"),memberBy:i.memberBy,joined:i.joined},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueUsers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","GET",{queueId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),joined:i.joined,name:i.name,profileSkills:this.apiClient.buildCollectionParam(i.profileSkills,"multi"),skills:this.apiClient.buildCollectionParam(i.skills,"multi"),languages:this.apiClient.buildCollectionParam(i.languages,"multi"),routingStatus:this.apiClient.buildCollectionParam(i.routingStatus,"multi"),presence:this.apiClient.buildCollectionParam(i.presence,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueueWrapupcodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","GET",{queueId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueues(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),peerId:this.apiClient.buildCollectionParam(e.peerId,"multi"),cannedResponseLibraryId:e.cannedResponseLibraryId,hasPeer:e.hasPeer},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesDivisionviewsAll(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/divisionviews/all","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingQueuesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/queues/me","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,joined:e.joined,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettings(){return this.apiClient.callApi("/api/v2/routing/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettingsContactcenter(){return this.apiClient.callApi("/api/v2/routing/settings/contactcenter","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSettingsTranscription(){return this.apiClient.callApi("/api/v2/routing/settings/transcription","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkill(e){if(void 0===e||null===e)throw'Missing the required parameter "skillId" when calling getRoutingSkill';return this.apiClient.callApi("/api/v2/routing/skills/{skillId}","GET",{skillId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroup(e){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","GET",{skillGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroupMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembers';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members","GET",{skillGroupId:e},{pageSize:i.pageSize,after:i.after,before:i.before,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling getRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","GET",{skillGroupId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkillgroups(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skillgroups","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSkills(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/skills","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAddress(e){if(void 0===e||null===e)throw'Missing the required parameter "addressId" when calling getRoutingSmsAddress';return this.apiClient.callApi("/api/v2/routing/sms/addresses/{addressId}","GET",{addressId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAddresses(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/addresses","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsAvailablephonenumbers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "countryCode" when calling getRoutingSmsAvailablephonenumbers';if(void 0===i||null===i)throw'Missing the required parameter "phoneNumberType" when calling getRoutingSmsAvailablephonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/availablephonenumbers","GET",{},{countryCode:e,region:t.region,city:t.city,areaCode:t.areaCode,phoneNumberType:i,pattern:t.pattern,addressRequirement:t.addressRequirement},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsPhonenumber(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling getRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","GET",{phoneNumberId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingSmsPhonenumbers(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","GET",{},{phoneNumber:e.phoneNumber,phoneNumberType:this.apiClient.buildCollectionParam(e.phoneNumberType,"multi"),phoneNumberStatus:this.apiClient.buildCollectionParam(e.phoneNumberStatus,"multi"),countryCode:this.apiClient.buildCollectionParam(e.countryCode,"multi"),pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,language:e.language,"integration.id":e.integrationId,"supportedContent.id":e.supportedContentId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilization(){return this.apiClient.callApi("/api/v2/routing/utilization","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabel(e){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabelAgents(e){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabelAgents';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}/agents","GET",{labelId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationLabels(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/labels","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTag(e){if(void 0===e||null===e)throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTag';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTagAgents(e){if(void 0===e||null===e)throw'Missing the required parameter "tagId" when calling getRoutingUtilizationTagAgents';return this.apiClient.callApi("/api/v2/routing/utilization/tags/{tagId}/agents","GET",{tagId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUtilizationTags(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/utilization/tags","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcode(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling getRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodes(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodesDivisionview(e){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling getRoutingWrapupcodesDivisionview';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews/{codeId}","GET",{codeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingWrapupcodesDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/wrapupcodes/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,id:this.apiClient.buildCollectionParam(e.id,"multi"),divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi"),includeState:e.includeState},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutinglanguages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingskills(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSkillgroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingConversation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchRoutingConversation';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingConversation';return this.apiClient.callApi("/api/v2/routing/conversations/{conversationId}","PATCH",{conversationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingEmailDomain(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomain';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingEmailDomain';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingEmailDomainValidate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling patchRoutingEmailDomainValidate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingEmailDomainValidate';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/validate","PATCH",{domainId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingPredictor(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "predictorId" when calling patchRoutingPredictor';return this.apiClient.callApi("/api/v2/routing/predictors/{predictorId}","PATCH",{predictorId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueMember(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling patchRoutingQueueMember';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchRoutingQueueMember';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members/{memberId}","PATCH",{queueId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueUser(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueUser';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling patchRoutingQueueUser';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchRoutingQueueUser';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users/{memberId}","PATCH",{queueId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingQueueUsers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchRoutingQueueUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","PATCH",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSettingsContactcenter(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchRoutingSettingsContactcenter';return this.apiClient.callApi("/api/v2/routing/settings/contactcenter","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSettingsTranscription(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchRoutingSkillgroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling patchRoutingSkillgroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchRoutingSkillgroup';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}","PATCH",{skillGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchUserQueue';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchUserQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(t.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguagesBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsQueuesObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/queues/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsRoutingActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsRoutingActivityQuery';return this.apiClient.callApi("/api/v2/analytics/routing/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingAssessments(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingAssessmentsJobs(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/assessments/jobs","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomainRoutes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling postRoutingEmailDomainRoutes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingEmailDomainRoutes';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes","POST",{domainName:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomainTestconnection(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "domainId" when calling postRoutingEmailDomainTestconnection';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainId}/testconnection","POST",{domainId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailDomains';return this.apiClient.callApi("/api/v2/routing/email/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailOutboundDomains(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomains';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingEmailOutboundDomainsSimulated(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingEmailOutboundDomainsSimulated';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/simulated","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingLanguages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingLanguages';return this.apiClient.callApi("/api/v2/routing/languages","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingPredictors(e){return e=e||{},this.apiClient.callApi("/api/v2/routing/predictors","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueMembers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueMembers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/members","POST",{queueId:e},{delete:t._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueUsers(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueUsers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueUsers';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/users","POST",{queueId:e},{delete:t._delete},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueueWrapupcodes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling postRoutingQueueWrapupcodes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postRoutingQueueWrapupcodes';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}/wrapupcodes","POST",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingQueues(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingQueues';return this.apiClient.callApi("/api/v2/routing/queues","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkillgroupMembersDivisions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "skillGroupId" when calling postRoutingSkillgroupMembersDivisions';return this.apiClient.callApi("/api/v2/routing/skillgroups/{skillGroupId}/members/divisions","POST",{skillGroupId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkillgroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSkillgroups';return this.apiClient.callApi("/api/v2/routing/skillgroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSkills(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSkills';return this.apiClient.callApi("/api/v2/routing/skills","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsAddresses(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsAddresses';return this.apiClient.callApi("/api/v2/routing/sms/addresses","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbers';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbersAlphanumeric(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersAlphanumeric';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/alphanumeric","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingSmsPhonenumbersImport(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingSmsPhonenumbersImport';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/import","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingUtilizationLabels(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingUtilizationLabels';return this.apiClient.callApi("/api/v2/routing/utilization/labels","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingUtilizationTags(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingUtilizationTags';return this.apiClient.callApi("/api/v2/routing/utilization/tags","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postRoutingWrapupcodes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postRoutingWrapupcodes';return this.apiClient.callApi("/api/v2/routing/wrapupcodes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutinglanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutingskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingDirectroutingbackupSettingsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingEmailDomainRoute(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "domainName" when calling putRoutingEmailDomainRoute';if(void 0===i||null===i)throw'Missing the required parameter "routeId" when calling putRoutingEmailDomainRoute';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putRoutingEmailDomainRoute';return this.apiClient.callApi("/api/v2/routing/email/domains/{domainName}/routes/{routeId}","PUT",{domainName:e,routeId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingEmailOutboundDomainActivation(e){if(void 0===e||null===e)throw'Missing the required parameter "domainId" when calling putRoutingEmailOutboundDomainActivation';return this.apiClient.callApi("/api/v2/routing/email/outbound/domains/{domainId}/activation","PUT",{domainId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingMessageRecipient(e,i){if(void 0===e||null===e)throw'Missing the required parameter "recipientId" when calling putRoutingMessageRecipient';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingMessageRecipient';return this.apiClient.callApi("/api/v2/routing/message/recipients/{recipientId}","PUT",{recipientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingQueue(e,i){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling putRoutingQueue';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingQueue';return this.apiClient.callApi("/api/v2/routing/queues/{queueId}","PUT",{queueId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingSettings';return this.apiClient.callApi("/api/v2/routing/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSettingsTranscription(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingSettingsTranscription';return this.apiClient.callApi("/api/v2/routing/settings/transcription","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingSmsPhonenumber(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneNumberId" when calling putRoutingSmsPhonenumber';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{phoneNumberId}","PUT",{phoneNumberId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserDirectroutingbackupSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserUtilization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingUtilization';return this.apiClient.callApi("/api/v2/routing/utilization","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUtilizationLabel(e,i){if(void 0===e||null===e)throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';return this.apiClient.callApi("/api/v2/routing/utilization/labels/{labelId}","PUT",{labelId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingWrapupcode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "codeId" when calling putRoutingWrapupcode';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingWrapupcode';return this.apiClient.callApi("/api/v2/routing/wrapupcodes/{codeId}","PUT",{codeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskill(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class ve{constructor(e){this.apiClient=e||w.instance}deleteScimUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","DELETE",{userId:e},{},{"If-Match":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}deleteScimV2User(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","DELETE",{userId:e},{},{"If-Match":i.ifMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimGroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimGroups(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/groups","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimResourcetype(e){if(void 0===e||null===e)throw'Missing the required parameter "resourceType" when calling getScimResourcetype';return this.apiClient.callApi("/api/v2/scim/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimResourcetypes(){return this.apiClient.callApi("/api/v2/scim/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getScimSchema';return this.apiClient.callApi("/api/v2/scim/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimSchemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimServiceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Group(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","GET",{groupId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Groups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "filter" when calling getScimV2Groups';return this.apiClient.callApi("/api/v2/scim/v2/groups","GET",{},{startIndex:i.startIndex,count:i.count,attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi"),filter:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Resourcetype(e){if(void 0===e||null===e)throw'Missing the required parameter "resourceType" when calling getScimV2Resourcetype';return this.apiClient.callApi("/api/v2/scim/v2/resourcetypes/{resourceType}","GET",{resourceType:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Resourcetypes(){return this.apiClient.callApi("/api/v2/scim/v2/resourcetypes","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Schema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getScimV2Schema';return this.apiClient.callApi("/api/v2/scim/v2/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Schemas(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/schemas","GET",{},{filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Serviceproviderconfig(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/serviceproviderconfig","GET",{},{},{"If-None-Match":e.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2User(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","GET",{userId:e},{attributes:this.apiClient.buildCollectionParam(i.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(i.excludedAttributes,"multi")},{"If-None-Match":i.ifNoneMatch},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}getScimV2Users(e){return e=e||{},this.apiClient.callApi("/api/v2/scim/v2/users","GET",{},{startIndex:e.startIndex,count:e.count,attributes:this.apiClient.buildCollectionParam(e.attributes,"multi"),excludedAttributes:this.apiClient.buildCollectionParam(e.excludedAttributes,"multi"),filter:e.filter},{},{},null,["PureCloud OAuth"],["application/json"],["application/scim+json","application/json"])}patchScimGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchScimGroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchScimUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PATCH",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimV2Group(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchScimV2Group';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PATCH",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}patchScimV2User(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchScimV2User';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PATCH",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}postScimUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postScimUsers';return this.apiClient.callApi("/api/v2/scim/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}postScimV2Users(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postScimV2Users';return this.apiClient.callApi("/api/v2/scim/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimGroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putScimGroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimGroup';return this.apiClient.callApi("/api/v2/scim/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimUser(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling putScimUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimUser';return this.apiClient.callApi("/api/v2/scim/users/{userId}","PUT",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimV2Group(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling putScimV2Group';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimV2Group';return this.apiClient.callApi("/api/v2/scim/v2/groups/{groupId}","PUT",{groupId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}putScimV2User(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling putScimV2User';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putScimV2User';return this.apiClient.callApi("/api/v2/scim/v2/users/{userId}","PUT",{userId:e},{},{"If-Match":t.ifMatch},{},i,["PureCloud OAuth"],["application/scim+json","application/json"],["application/scim+json","application/json"])}}class Ce{constructor(e){this.apiClient=e||w.instance}postScreenrecordingToken(e){return e=e||{},this.apiClient.callApi("/api/v2/screenrecording/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ie{constructor(e){this.apiClient=e||w.instance}getScript(e){if(void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScript';return this.apiClient.callApi("/api/v2/scripts/{scriptId}","GET",{scriptId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptPage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptPage';if(void 0===i||null===i)throw'Missing the required parameter "pageId" when calling getScriptPage';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:t.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptPages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptPages';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScripts(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,sortBy:e.sortBy,sortOrder:e.sortOrder,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published/divisionviews","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,name:e.name,feature:e.feature,flowId:e.flowId,scriptDataVersion:e.scriptDataVersion,divisionIds:e.divisionIds},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptId';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdPage(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPage';if(void 0===i||null===i)throw'Missing the required parameter "pageId" when calling getScriptsPublishedScriptIdPage';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages/{pageId}","GET",{scriptId:e,pageId:i},{scriptDataVersion:t.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdPages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdPages';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/pages","GET",{scriptId:e},{scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsPublishedScriptIdVariables(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling getScriptsPublishedScriptIdVariables';return this.apiClient.callApi("/api/v2/scripts/published/{scriptId}/variables","GET",{scriptId:e},{input:i.input,output:i.output,type:i.type,scriptDataVersion:i.scriptDataVersion},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getScriptsUploadStatus(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "uploadId" when calling getScriptsUploadStatus';return this.apiClient.callApi("/api/v2/scripts/uploads/{uploadId}/status","GET",{uploadId:e},{longPoll:i.longPoll},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postScriptExport(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scriptId" when calling postScriptExport';return this.apiClient.callApi("/api/v2/scripts/{scriptId}/export","POST",{scriptId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postScriptsPublished(e){return e=e||{},this.apiClient.callApi("/api/v2/scripts/published","POST",{},{scriptDataVersion:e.scriptDataVersion},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class fe{constructor(e){this.apiClient=e||w.instance}getDocumentationGknSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "q64" when calling getDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getDocumentationSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "q64" when calling getDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","GET",{},{q64:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getGroupsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getLocationsSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsConversationsTranscriptsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsConversationsTranscriptsQuery';return this.apiClient.callApi("/api/v2/analytics/conversations/transcripts/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postConversationsParticipantsAttributesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsParticipantsAttributesSearch';return this.apiClient.callApi("/api/v2/conversations/participants/attributes/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationAllSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationAllSearch';return this.apiClient.callApi("/api/v2/documentation/all/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationGknSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationGknSearch';return this.apiClient.callApi("/api/v2/documentation/gkn/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postDocumentationSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postDocumentationSearch';return this.apiClient.callApi("/api/v2/documentation/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postGroupsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postGroupsSearch';return this.apiClient.callApi("/api/v2/groups/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseSearch';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/search","POST",{knowledgeBaseId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postLocationsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postLocationsSearch';return this.apiClient.callApi("/api/v2/locations/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTranscriptsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSitesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchConversationTarget(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchQueuemembersManage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchTeamsAssign(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ae{constructor(e){this.apiClient=e||w.instance}deleteUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling deleteUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","DELETE",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getEmailsSettings(){return this.apiClient.callApi("/api/v2/emails/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSettingsExecutiondata(){return this.apiClient.callApi("/api/v2/settings/executiondata","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersAgentuiAgentsAutoanswerAgentIdSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchEmailsSettings(e){return e=e||{},this.apiClient.callApi("/api/v2/emails/settings","PATCH",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSettingsExecutiondata(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchSettingsExecutiondata';return this.apiClient.callApi("/api/v2/settings/executiondata","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PATCH",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUsersAgentuiAgentsAutoanswerAgentIdSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';return this.apiClient.callApi("/api/v2/users/agentui/agents/autoanswer/{agentId}/settings","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class be{constructor(e){this.apiClient=e||w.instance}deleteSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","DELETE",{topicId:e},{hardDelete:i.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","DELETE",{topicId:e,facebookIngestionRuleId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","DELETE",{topicId:e,openId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","DELETE",{topicId:e,twitterIngestionRuleId:i},{hardDelete:t.hardDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","GET",{topicId:e},{includeDeleted:i.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","GET",{topicId:e,facebookIngestionRuleId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,facebookIngestionRuleId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions","GET",{topicId:e,facebookIngestionRuleId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","GET",{topicId:e,openId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,openId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions","GET",{topicId:e,openId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","GET",{topicId:e,twitterIngestionRuleId:i},{includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';if(void 0===t||null===t)throw'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions/{dataIngestionRuleVersion}","GET",{topicId:e,twitterIngestionRuleId:i,dataIngestionRuleVersion:t},{includeDeleted:n.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions","GET",{topicId:e,twitterIngestionRuleId:i},{pageNumber:t.pageNumber,pageSize:t.pageSize,includeDeleted:t.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,divisionIds:this.apiClient.buildCollectionParam(e.divisionIds,"multi"),includeDeleted:e.includeDeleted},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopic(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopic';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}","PATCH",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PATCH",{topicId:e,facebookIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PATCH",{topicId:e,openId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PATCH",{topicId:e,twitterIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesFacebook(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesOpen(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopicDataingestionrulesTwitter(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesTwitter';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter","POST",{topicId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postSocialmediaTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/socialmedia/topics","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}","PUT",{topicId:e,facebookIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesOpenOpenId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';if(void 0===i||null===i)throw'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}","PUT",{topicId:e,openId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';if(void 0===i||null===i)throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';return this.apiClient.callApi("/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}","PUT",{topicId:e,twitterIngestionRuleId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class je{constructor(e){this.apiClient=e||w.instance}deleteSpeechandtextanalyticsCategory(e){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","DELETE",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","DELETE",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsProgram(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "programId" when calling deleteSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","DELETE",{programId:e},{forceDelete:i.forceDelete},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsSentimentfeedback(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "sentimentFeedbackId" when calling deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId}","DELETE",{sentimentFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteSpeechandtextanalyticsTopic(e){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling deleteSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","DELETE",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsCategories(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortOrder:e.sortOrder,sortBy:e.sortBy,ids:this.apiClient.buildCollectionParam(e.ids,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsCategory(e){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","GET",{categoryId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCategories(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/categories","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCommunicationTranscripturl(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturl';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturl","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsConversationCommunicationTranscripturls(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getSpeechandtextanalyticsConversationCommunicationTranscripturls';return this.apiClient.callApi("/api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsDictionaryfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","GET",{},{dialect:e.dialect,nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e){if(void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling getSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","GET",{dictionaryFeedbackId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgram(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramMappings(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramTranscriptionengines(e){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling getSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","GET",{programId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsPrograms(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsGeneralJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsGeneralJob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsMappings(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/mappings","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsPublishjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsProgramsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsTranscriptionenginesDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/transcriptionengines/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsProgramsUnpublished(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/unpublished","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSentimentDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentiment/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSentimentfeedback(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsSettings(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopic(e){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling getSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","GET",{topicId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopics(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","GET",{},{nextPage:e.nextPage,pageSize:e.pageSize,state:e.state,name:e.name,ids:this.apiClient.buildCollectionParam(e.ids,"multi"),dialects:this.apiClient.buildCollectionParam(e.dialects,"multi"),sortBy:e.sortBy,sortOrder:e.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsDialects(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/dialects","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsGeneral(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsGeneralStatus(e){return e=e||{},this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/general/status","GET",{},{dialect:e.dialect},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTopicsPublishjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getSpeechandtextanalyticsTopicsPublishjob';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTranslationsLanguageConversation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "languageId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';if(void 0===i||null===i)throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsTranslationsLanguageConversation';return this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages/{languageId}/conversations/{conversationId}","GET",{languageId:e,conversationId:i},{communicationId:t.communicationId,recordingId:t.recordingId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSpeechandtextanalyticsTranslationsLanguages(){return this.apiClient.callApi("/api/v2/speechandtextanalytics/translations/languages","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchSpeechandtextanalyticsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsCategories(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsDictionaryfeedback(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsDictionaryfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsPrograms(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsPrograms';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsProgramsGeneralJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsGeneralJobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/general/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsProgramsPublishjobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsProgramsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsSentimentfeedback(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsSentimentfeedback';return this.apiClient.callApi("/api/v2/speechandtextanalytics/sentimentfeedback","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTopics(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopics';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTopicsPublishjobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTopicsPublishjobs';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/publishjobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSpeechandtextanalyticsTranscriptsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';return this.apiClient.callApi("/api/v2/speechandtextanalytics/transcripts/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsCategory(e,i){if(void 0===e||null===e)throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';return this.apiClient.callApi("/api/v2/speechandtextanalytics/categories/{categoryId}","PUT",{categoryId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "dictionaryFeedbackId" when calling putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';return this.apiClient.callApi("/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}","PUT",{dictionaryFeedbackId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgram(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgram';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgram';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgramMappings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramMappings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramMappings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/mappings","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsProgramTranscriptionengines(e,i){if(void 0===e||null===e)throw'Missing the required parameter "programId" when calling putSpeechandtextanalyticsProgramTranscriptionengines';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsProgramTranscriptionengines';return this.apiClient.callApi("/api/v2/speechandtextanalytics/programs/{programId}/transcriptionengines","PUT",{programId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsSettings';return this.apiClient.callApi("/api/v2/speechandtextanalytics/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putSpeechandtextanalyticsTopic(e,i){if(void 0===e||null===e)throw'Missing the required parameter "topicId" when calling putSpeechandtextanalyticsTopic';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';return this.apiClient.callApi("/api/v2/speechandtextanalytics/topics/{topicId}","PUT",{topicId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Pe{constructor(e){this.apiClient=e||w.instance}deleteStationAssociateduser(e){if(void 0===e||null===e)throw'Missing the required parameter "stationId" when calling deleteStationAssociateduser';return this.apiClient.callApi("/api/v2/stations/{stationId}/associateduser","DELETE",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getStation(e){if(void 0===e||null===e)throw'Missing the required parameter "stationId" when calling getStation';return this.apiClient.callApi("/api/v2/stations/{stationId}","GET",{stationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getStations(e){return e=e||{},this.apiClient.callApi("/api/v2/stations","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,name:e.name,userSelectable:e.userSelectable,webRtcUserId:e.webRtcUserId,id:e.id,lineAppearanceId:e.lineAppearanceId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class ye{constructor(e){this.apiClient=e||w.instance}getSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearch';return this.apiClient.callApi("/api/v2/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),profile:i.profile},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearch';return this.apiClient.callApi("/api/v2/search","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postSearchSuggest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postSearchSuggest';return this.apiClient.callApi("/api/v2/search/suggest","POST",{},{profile:i.profile},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Oe{constructor(e){this.apiClient=e||w.instance}deleteTaskmanagementWorkbin(e){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling deleteTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","DELETE",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorkitem(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling deleteTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","DELETE",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorkitemsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling deleteTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","DELETE",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktype(e){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","DELETE",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeFlowsOnattributechangeRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeFlowsOncreateRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling deleteTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","DELETE",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTaskmanagementWorktypeStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling deleteTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling deleteTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","DELETE",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbin(e){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","GET",{workbinId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/history","GET",{workbinId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkbinVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions/{entityVersion}","GET",{workbinId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkbinVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling getTaskmanagementWorkbinVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}/versions","GET",{workbinId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitem(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","GET",{workitemId:e},{expands:i.expands},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemHistory';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/history","GET",{workitemId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemUserWrapups(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemUserWrapups';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","GET",{workitemId:e,userId:i},{expands:t.expands,after:t.after,pageSize:t.pageSize,sortOrder:t.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorkitemVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions/{entityVersion}","GET",{workitemId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/versions","GET",{workitemId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemWrapups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling getTaskmanagementWorkitemWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/wrapups","GET",{workitemId:e},{expands:i.expands,after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsQueryJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJob';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsQueryJobResults(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getTaskmanagementWorkitemsQueryJobResults';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs/{jobId}/results","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchema(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemaVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getTaskmanagementWorkitemsSchemaVersion';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions/{versionId}","GET",{schemaId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemaVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling getTaskmanagementWorkitemsSchemaVersions';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}/versions","GET",{schemaId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorkitemsSchemas(){return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktype(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","GET",{worktypeId:e},{expands:this.apiClient.buildCollectionParam(i.expands,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOnattributechangeRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","GET",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOncreateRule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling getTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","GET",{worktypeId:e,ruleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeFlowsOncreateRules(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeHistory';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/history","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder,fields:this.apiClient.buildCollectionParam(i.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeStatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling getTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","GET",{worktypeId:e,statusId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeStatuses(e){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","GET",{worktypeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersion';if(void 0===i||null===i)throw'Missing the required parameter "entityVersion" when calling getTaskmanagementWorktypeVersion';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions/{entityVersion}","GET",{worktypeId:e,entityVersion:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTaskmanagementWorktypeVersions(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling getTaskmanagementWorktypeVersions';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/versions","GET",{worktypeId:e},{after:i.after,pageSize:i.pageSize,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkbin(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workbinId" when calling patchTaskmanagementWorkbin';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkbin';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/{workbinId}","PATCH",{workbinId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitem(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitem';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitem';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemAssignment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemAssignment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemAssignment';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/assignment","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemUserWrapups(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUserWrapups';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchTaskmanagementWorkitemUserWrapups';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUserWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/{userId}/wrapups","PATCH",{workitemId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorkitemUsersMeWrapups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling patchTaskmanagementWorkitemUsersMeWrapups';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorkitemUsersMeWrapups';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/users/me/wrapups","PATCH",{workitemId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktype(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeFlowsOnattributechangeRule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOnattributechangeRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeFlowsOncreateRule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(void 0===i||null===i)throw'Missing the required parameter "ruleId" when calling patchTaskmanagementWorktypeFlowsOncreateRule';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeFlowsOncreateRule';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules/{ruleId}","PATCH",{worktypeId:e,ruleId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeStatus(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktypeStatus';if(void 0===i||null===i)throw'Missing the required parameter "statusId" when calling patchTaskmanagementWorktypeStatus';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchTaskmanagementWorktypeStatus';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","PATCH",{worktypeId:e,statusId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbins(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbins';return this.apiClient.callApi("/api/v2/taskmanagement/workbins","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbinsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkbinsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workbins/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemAcdCancel(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemAcdCancel';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/acd/cancel","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemDisconnect(e){if(void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemDisconnect';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/disconnect","POST",{workitemId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemTerminate(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "workitemId" when calling postTaskmanagementWorkitemTerminate';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/{workitemId}/terminate","POST",{workitemId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitems(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitems';return this.apiClient.callApi("/api/v2/taskmanagement/workitems","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQuery';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsQueryJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsQueryJobs';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/query/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkitemsSchemas(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorkitemsSchemas';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeFlowsOnattributechangeRules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOnattributechangeRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/onattributechange/rules","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeFlowsOncreateRules(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeFlowsOncreateRules';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeFlowsOncreateRules';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/flows/oncreate/rules","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypeStatuses(e,i){if(void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypes(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypes';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTaskmanagementWorktypesQuery';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTaskmanagementWorkitemsSchema(e,i){if(void 0===e||null===e)throw'Missing the required parameter "schemaId" when calling putTaskmanagementWorkitemsSchema';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';return this.apiClient.callApi("/api/v2/taskmanagement/workitems/schemas/{schemaId}","PUT",{schemaId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Me{constructor(e){this.apiClient=e||w.instance}deleteTeam(e){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling deleteTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","DELETE",{teamId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTeamMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling deleteTeamMembers';if(void 0===i||null===i)throw'Missing the required parameter "id" when calling deleteTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","DELETE",{teamId:e},{id:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeam(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling getTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","GET",{teamId:e},{expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeamMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling getTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","GET",{teamId:e},{pageSize:i.pageSize,before:i.before,after:i.after,expand:i.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTeams(e){return e=e||{},this.apiClient.callApi("/api/v2/teams","GET",{},{pageSize:e.pageSize,name:e.name,after:e.after,before:e.before,expand:e.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTeam(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling patchTeam';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTeam';return this.apiClient.callApi("/api/v2/teams/{teamId}","PATCH",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsTeamsActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsTeamsActivityQuery';return this.apiClient.callApi("/api/v2/analytics/teams/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamMembers(e,i){if(void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postTeamMembers';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTeamMembers';return this.apiClient.callApi("/api/v2/teams/{teamId}/members","POST",{teamId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTeams(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeams';return this.apiClient.callApi("/api/v2/teams","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTeamsSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTeamsSearch';return this.apiClient.callApi("/api/v2/teams/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Te{constructor(e){this.apiClient=e||w.instance}getTelephonyMediaregions(){return this.apiClient.callApi("/api/v2/telephony/mediaregions","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySipmessagesConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversation';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySipmessagesConversationHeaders(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonySipmessagesConversationHeaders';return this.apiClient.callApi("/api/v2/telephony/sipmessages/conversations/{conversationId}/headers","GET",{conversationId:e},{keys:this.apiClient.buildCollectionParam(i.keys,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySiptraces(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "dateStart" when calling getTelephonySiptraces';if(void 0===i||null===i)throw'Missing the required parameter "dateEnd" when calling getTelephonySiptraces';return this.apiClient.callApi("/api/v2/telephony/siptraces","GET",{},{callId:t.callId,toUser:t.toUser,fromUser:t.fromUser,conversationId:t.conversationId,dateStart:e,dateEnd:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonySiptracesDownloadDownloadId(e){if(void 0===e||null===e)throw'Missing the required parameter "downloadId" when calling getTelephonySiptracesDownloadDownloadId';return this.apiClient.callApi("/api/v2/telephony/siptraces/download/{downloadId}","GET",{downloadId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonySiptracesDownload(e){if(void 0===e||null===e)throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';return this.apiClient.callApi("/api/v2/telephony/siptraces/download","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class qe{constructor(e){this.apiClient=e||w.instance}deleteTelephonyProvidersEdge(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgeLogicalinterface(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling deleteTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","DELETE",{edgeId:e,interfaceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgeSoftwareupdate(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling deleteTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","DELETE",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesAlertablepresences(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesCertificateauthority(e){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling deleteTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","DELETE",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesDidpool(e){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling deleteTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","DELETE",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesEdgegroup(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling deleteTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","DELETE",{edgeGroupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesExtensionpool(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling deleteTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","DELETE",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesPhone(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling deleteTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","DELETE",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesPhonebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling deleteTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","DELETE",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesSite(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","DELETE",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesSiteOutboundroute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling deleteTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","DELETE",{siteId:e,outboundRouteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTelephonyProvidersEdgesTrunkbasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling deleteTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","DELETE",{trunkBaseSettingsId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdge(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticNslookup(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticPing(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticRoute(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeDiagnosticTracepath(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogicalinterface(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogicalinterfaces(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","GET",{edgeId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeLogsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeLogsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getTelephonyProvidersEdgeLogsJob';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}","GET",{edgeId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/metrics","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgePhysicalinterface(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling getTelephonyProvidersEdgePhysicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces/{interfaceId}","GET",{edgeId:e,interfaceId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgePhysicalinterfaces(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgePhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/physicalinterfaces","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSetuppackage(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSetuppackage';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/setuppackage","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSoftwareupdate(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeSoftwareversions(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeSoftwareversions';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareversions","GET",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgeTrunks(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling getTelephonyProvidersEdgeTrunks';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/trunks","GET",{edgeId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize,sortBy:i.sortBy,sortOrder:i.sortOrder,"trunkBase.id":i.trunkBaseId,trunkType:i.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdges(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"edgeGroup.id":e.edgeGroupId,sortBy:e.sortBy,managed:e.managed,showCloudMedia:e.showCloudMedia},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesAlertablepresences(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","GET",{},{type:e.type},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesCertificateauthorities(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesCertificateauthority(e){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling getTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","GET",{certificateId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDid(e){if(void 0===e||null===e)throw'Missing the required parameter "didId" when calling getTelephonyProvidersEdgesDid';return this.apiClient.callApi("/api/v2/telephony/providers/edges/dids/{didId}","GET",{didId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpool(e){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling getTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","GET",{didPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDidpoolsDids(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "type" when calling getTelephonyProvidersEdgesDidpoolsDids';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/dids","GET",{},{type:e,id:this.apiClient.buildCollectionParam(i.id,"multi"),numberMatch:i.numberMatch,pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesDids(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/dids","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,phoneNumber:e.phoneNumber,"owner.id":e.ownerId,"didPool.id":e.didPoolId,id:this.apiClient.buildCollectionParam(e.id,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroup(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling getTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","GET",{edgeGroupId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgegroupId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===i||null===i)throw'Missing the required parameter "edgetrunkbaseId" when calling getTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","GET",{edgegroupId:e,edgetrunkbaseId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgegroups(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,managed:e.managed},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesEdgeversionreport(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgeversionreport","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExpired(){return this.apiClient.callApi("/api/v2/telephony/providers/edges/expired","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtension(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionId" when calling getTelephonyProvidersEdgesExtension';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions/{extensionId}","GET",{extensionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpool(e){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling getTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","GET",{extensionPoolId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpools(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,number:e._number},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensionpoolsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/divisionviews","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,id:this.apiClient.buildCollectionParam(e.id,"multi"),name:e.name,divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesExtensions(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/extensions","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,number:e._number},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLine(e){if(void 0===e||null===e)throw'Missing the required parameter "lineId" when calling getTelephonyProvidersEdgesLine';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/{lineId}","GET",{lineId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "lineBaseId" when calling getTelephonyProvidersEdgesLinebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings/{lineBaseId}","GET",{lineBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/linebasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLines(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/lines","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLinesTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "lineBaseSettingsId" when calling getTelephonyProvidersEdgesLinesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/lines/template","GET",{},{lineBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesLogicalinterfaces(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/logicalinterfaces","GET",{},{edgeIds:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMediastatisticsConversation(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMediastatisticsConversationCommunication(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';if(void 0===i||null===i)throw'Missing the required parameter "communicationId" when calling getTelephonyProvidersEdgesMediastatisticsConversationCommunication';return this.apiClient.callApi("/api/v2/telephony/providers/edges/mediastatistics/conversations/{conversationId}/communications/{communicationId}","GET",{conversationId:e,communicationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/metrics","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesOutboundroutes(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/outboundroutes","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,name:e.name,"site.id":e.siteId,"externalTrunkBases.ids":e.externalTrunkBasesIds,sortBy:e.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhone(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling getTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","GET",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesetting(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling getTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","GET",{phoneBaseId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/availablemetabases","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonebasesettingsTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneMetabaseId" when calling getTelephonyProvidersEdgesPhonebasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/template","GET",{},{phoneMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"site.id":e.siteId,"webRtcUser.id":e.webRtcUserId,"phoneBaseSettings.id":e.phoneBaseSettingsId,"lines.loggedInUser.id":e.linesLoggedInUserId,"lines.defaultForUser.id":e.linesDefaultForUserId,phone_hardwareId:e.phoneHardwareId,"lines.id":e.linesId,"lines.name":e.linesName,name:e.name,"status.operationalStatus":e.statusOperationalStatus,"secondaryStatus.operationalStatus":e.secondaryStatusOperationalStatus,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),fields:this.apiClient.buildCollectionParam(e.fields,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhonesTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseSettingsId" when calling getTelephonyProvidersEdgesPhonesTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/template","GET",{},{phoneBaseSettingsId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesPhysicalinterfaces(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeIds" when calling getTelephonyProvidersEdgesPhysicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/physicalinterfaces","GET",{},{edgeIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSite(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplan';if(void 0===i||null===i)throw'Missing the required parameter "numberPlanId" when calling getTelephonyProvidersEdgesSiteNumberplan';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/{numberPlanId}","GET",{siteId:e,numberPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplans(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteNumberplansClassifications(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteNumberplansClassifications';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans/classifications","GET",{siteId:e},{classification:i.classification},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteOutboundroute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling getTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","GET",{siteId:e,outboundRouteId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","GET",{siteId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,name:i.name,"externalTrunkBases.ids":i.externalTrunkBasesIds,sortBy:i.sortBy},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSiteSiteconnections(e){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling getTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","GET",{siteId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSites(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,sortBy:e.sortBy,sortOrder:e.sortOrder,name:e.name,"location.id":e.locationId,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesSitesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunk(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunk';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkId" when calling getTelephonyProvidersEdgesTrunkMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/{trunkId}/metrics","GET",{trunkId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesetting(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling getTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","GET",{trunkBaseSettingsId:e},{ignoreHidden:i.ignoreHidden},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettings(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,recordingEnabled:e.recordingEnabled,ignoreHidden:e.ignoreHidden,managed:e.managed,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),name:e.name},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettingsAvailablemetabases(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/availablemetabases","GET",{},{type:e.type,pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkbasesettingsTemplate(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkMetabaseId" when calling getTelephonyProvidersEdgesTrunkbasesettingsTemplate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/template","GET",{},{trunkMetabaseId:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunks(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,sortBy:e.sortBy,sortOrder:e.sortOrder,"edge.id":e.edgeId,"trunkBase.id":e.trunkBaseId,trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunksMetrics(e){if(void 0===e||null===e)throw'Missing the required parameter "trunkIds" when calling getTelephonyProvidersEdgesTrunksMetrics';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunks/metrics","GET",{},{trunkIds:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTelephonyProvidersEdgesTrunkswithrecording(e){return e=e||{},this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkswithrecording","GET",{},{trunkType:e.trunkType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchTelephonyProvidersEdgesSiteSiteconnections(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling patchTelephonyProvidersEdgesSiteSiteconnections';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PATCH",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticNslookup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticNslookup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticNslookup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/nslookup","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticPing(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticPing';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticPing';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/ping","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticRoute(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticRoute';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticRoute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/route","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeDiagnosticTracepath(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeDiagnosticTracepath';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeDiagnosticTracepath';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/diagnostic/tracepath","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogicalinterfaces(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogicalinterfaces';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogicalinterfaces';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogsJobUpload(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling postTelephonyProvidersEdgeLogsJobUpload';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobUpload';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs/{jobId}/upload","POST",{edgeId:e,jobId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeLogsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeLogsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeLogsJobs';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logs/jobs","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeReboot(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/reboot","POST",{edgeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeSoftwareupdate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeSoftwareupdate';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgeSoftwareupdate';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/softwareupdate","POST",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeStatuscode(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeStatuscode';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/statuscode","POST",{edgeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgeUnpair(e){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling postTelephonyProvidersEdgeUnpair';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/unpair","POST",{edgeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdges(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdges';return this.apiClient.callApi("/api/v2/telephony/providers/edges","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesAddressvalidation(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesAddressvalidation';return this.apiClient.callApi("/api/v2/telephony/providers/edges/addressvalidation","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesCertificateauthorities(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesCertificateauthorities';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesDidpools(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesDidpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesEdgegroups(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesEdgegroups';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesExtensionpools(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesExtensionpools';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhoneReboot(e){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling postTelephonyProvidersEdgesPhoneReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}/reboot","POST",{phoneId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhonebasesettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonebasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhones(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhones';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesPhonesReboot(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesPhonesReboot';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/reboot","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSiteOutboundroutes(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling postTelephonyProvidersEdgesSiteOutboundroutes';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSiteOutboundroutes';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes","POST",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSites(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSites';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesSitesSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesSitesSearch';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTelephonyProvidersEdgesTrunkbasesettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postTelephonyProvidersEdgesTrunkbasesettings';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdge(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdge';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdge';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}","PUT",{edgeId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgeLogicalinterface(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgeId" when calling putTelephonyProvidersEdgeLogicalinterface';if(void 0===i||null===i)throw'Missing the required parameter "interfaceId" when calling putTelephonyProvidersEdgeLogicalinterface';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgeLogicalinterface';return this.apiClient.callApi("/api/v2/telephony/providers/edges/{edgeId}/logicalinterfaces/{interfaceId}","PUT",{edgeId:e,interfaceId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesAlertablepresences(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesAlertablepresences';return this.apiClient.callApi("/api/v2/telephony/providers/edges/alertablepresences","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesCertificateauthority(e,i){if(void 0===e||null===e)throw'Missing the required parameter "certificateId" when calling putTelephonyProvidersEdgesCertificateauthority';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesCertificateauthority';return this.apiClient.callApi("/api/v2/telephony/providers/edges/certificateauthorities/{certificateId}","PUT",{certificateId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesDidpool(e,i){if(void 0===e||null===e)throw'Missing the required parameter "didPoolId" when calling putTelephonyProvidersEdgesDidpool';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesDidpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/didpools/{didPoolId}","PUT",{didPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesEdgegroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "edgeGroupId" when calling putTelephonyProvidersEdgesEdgegroup';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroup';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgeGroupId}","PUT",{edgeGroupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesEdgegroupEdgetrunkbase(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "edgegroupId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===i||null===i)throw'Missing the required parameter "edgetrunkbaseId" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesEdgegroupEdgetrunkbase';return this.apiClient.callApi("/api/v2/telephony/providers/edges/edgegroups/{edgegroupId}/edgetrunkbases/{edgetrunkbaseId}","PUT",{edgegroupId:e,edgetrunkbaseId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesExtensionpool(e,i){if(void 0===e||null===e)throw'Missing the required parameter "extensionPoolId" when calling putTelephonyProvidersEdgesExtensionpool';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesExtensionpool';return this.apiClient.callApi("/api/v2/telephony/providers/edges/extensionpools/{extensionPoolId}","PUT",{extensionPoolId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesPhone(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneId" when calling putTelephonyProvidersEdgesPhone';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhone';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phones/{phoneId}","PUT",{phoneId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesPhonebasesetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "phoneBaseId" when calling putTelephonyProvidersEdgesPhonebasesetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesPhonebasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/phonebasesettings/{phoneBaseId}","PUT",{phoneBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSite(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSite';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSite';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteNumberplans(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteNumberplans';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteNumberplans';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/numberplans","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteOutboundroute(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(void 0===i||null===i)throw'Missing the required parameter "outboundRouteId" when calling putTelephonyProvidersEdgesSiteOutboundroute';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteOutboundroute';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/outboundroutes/{outboundRouteId}","PUT",{siteId:e,outboundRouteId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesSiteSiteconnections(e,i){if(void 0===e||null===e)throw'Missing the required parameter "siteId" when calling putTelephonyProvidersEdgesSiteSiteconnections';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesSiteSiteconnections';return this.apiClient.callApi("/api/v2/telephony/providers/edges/sites/{siteId}/siteconnections","PUT",{siteId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putTelephonyProvidersEdgesTrunkbasesetting(e,i){if(void 0===e||null===e)throw'Missing the required parameter "trunkBaseSettingsId" when calling putTelephonyProvidersEdgesTrunkbasesetting';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';return this.apiClient.callApi("/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}","PUT",{trunkBaseSettingsId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Se{constructor(e){this.apiClient=e||w.instance}getTextbotsBotsSearch(e){return e=e||{},this.apiClient.callApi("/api/v2/textbots/bots/search","GET",{},{botType:this.apiClient.buildCollectionParam(e.botType,"multi"),botName:e.botName,botId:this.apiClient.buildCollectionParam(e.botId,"multi"),pageSize:e.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotflowsSessionTurns(e,i){if(void 0===e||null===e)throw'Missing the required parameter "sessionId" when calling postTextbotsBotflowsSessionTurns';if(void 0===i||null===i)throw'Missing the required parameter "turnRequest" when calling postTextbotsBotflowsSessionTurns';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions/{sessionId}/turns","POST",{sessionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotflowsSessions(e){if(void 0===e||null===e)throw'Missing the required parameter "launchRequest" when calling postTextbotsBotflowsSessions';return this.apiClient.callApi("/api/v2/textbots/botflows/sessions","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postTextbotsBotsExecute(e){if(void 0===e||null===e)throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';return this.apiClient.callApi("/api/v2/textbots/bots/execute","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ke{constructor(e){this.apiClient=e||w.instance}deleteToken(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteToken';return this.apiClient.callApi("/api/v2/tokens/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteTokensMe(){return this.apiClient.callApi("/api/v2/tokens/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTokensMe(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/me","GET",{},{preserveIdleTTL:e.preserveIdleTTL},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTokensTimeout(){return this.apiClient.callApi("/api/v2/tokens/timeout","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}headTokensMe(){return this.apiClient.callApi("/api/v2/tokens/me","HEAD",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putTokensTimeout(e){return e=e||{},this.apiClient.callApi("/api/v2/tokens/timeout","PUT",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ee{constructor(e){this.apiClient=e||w.instance}getKnowledgeKnowledgebaseUploadsUrlsJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getKnowledgeKnowledgebaseUploadsUrlsJob';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs/{jobId}","GET",{knowledgeBaseId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionDraftFunctionUpload(e,i){if(void 0===e||null===e)throw'Missing the required parameter "actionId" when calling postIntegrationsActionDraftFunctionUpload';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postIntegrationsActionDraftFunctionUpload';return this.apiClient.callApi("/api/v2/integrations/actions/{actionId}/draft/function/upload","POST",{actionId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeDocumentuploads(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postKnowledgeDocumentuploads';return this.apiClient.callApi("/api/v2/knowledge/documentuploads","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postKnowledgeKnowledgebaseUploadsUrlsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "knowledgeBaseId" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postKnowledgeKnowledgebaseUploadsUrlsJobs';return this.apiClient.callApi("/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/uploads/urls/jobs","POST",{knowledgeBaseId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postLanguageunderstandingMinerUploads(e,i){if(void 0===e||null===e)throw'Missing the required parameter "minerId" when calling postLanguageunderstandingMinerUploads';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postLanguageunderstandingMinerUploads';return this.apiClient.callApi("/api/v2/languageunderstanding/miners/{minerId}/uploads","POST",{minerId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsLearningCoverart(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsLearningCoverart';return this.apiClient.callApi("/api/v2/uploads/learning/coverart","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsPublicassetsImages(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsPublicassetsImages';return this.apiClient.callApi("/api/v2/uploads/publicassets/images","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsRecordings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsRecordings';return this.apiClient.callApi("/api/v2/uploads/recordings","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUploadsWorkforcemanagementHistoricaldataCsv(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';return this.apiClient.callApi("/api/v2/uploads/workforcemanagement/historicaldata/csv","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ge{constructor(e){this.apiClient=e||w.instance}getOauthClientUsageQueryResult(e,i){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getOauthClientUsageQueryResult';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getOauthClientUsageQueryResult';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query/results/{executionId}","GET",{executionId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getOauthClientUsageSummary(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "clientId" when calling getOauthClientUsageSummary';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/summary","GET",{clientId:e},{days:i.days},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageQueryExecutionIdResults(e){if(void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getUsageQueryExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/query/{executionId}/results","GET",{executionId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsageSimplesearchExecutionIdResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "executionId" when calling getUsageSimplesearchExecutionIdResults';return this.apiClient.callApi("/api/v2/usage/simplesearch/{executionId}/results","GET",{executionId:e},{after:i.after,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postOauthClientUsageQuery(e,i){if(void 0===e||null===e)throw'Missing the required parameter "clientId" when calling postOauthClientUsageQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postOauthClientUsageQuery';return this.apiClient.callApi("/api/v2/oauth/clients/{clientId}/usage/query","POST",{clientId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsageQuery';return this.apiClient.callApi("/api/v2/usage/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsageSimplesearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsageSimplesearch';return this.apiClient.callApi("/api/v2/usage/simplesearch","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ue{constructor(e){this.apiClient=e||w.instance}deleteUserrecording(e){if(void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling deleteUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","DELETE",{recordingId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecording(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","GET",{recordingId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecordingMedia';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}/media","GET",{recordingId:e},{formatId:i.formatId,async:i.async},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingTranscoding(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling getUserrecordingTranscoding';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}/transcoding","GET",{recordingId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordings(e){return e=e||{},this.apiClient.callApi("/api/v2/userrecordings","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserrecordingsSummary(){return this.apiClient.callApi("/api/v2/userrecordings/summary","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserrecording(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "recordingId" when calling putUserrecording';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserrecording';return this.apiClient.callApi("/api/v2/userrecordings/{recordingId}","PUT",{recordingId:e},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class De{constructor(e){this.apiClient=e||w.instance}deleteAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling deleteAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","DELETE",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteAuthorizationSubjectDivisionRole(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling deleteAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling deleteAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","DELETE",{subjectId:e,divisionId:i,roleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUser(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUser';return this.apiClient.callApi("/api/v2/users/{userId}","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutinglanguage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling deleteUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","DELETE",{userId:e,languageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserRoutingskill(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling deleteUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","DELETE",{userId:e,skillId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserStationAssociatedstation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserStationAssociatedstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserStationDefaultstation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserStationDefaultstation';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation","DELETE",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteUserVerifier(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling deleteUserVerifier';if(void 0===i||null===i)throw'Missing the required parameter "verifierId" when calling deleteUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","DELETE",{userId:e,verifierId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJob';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersAggregatesJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersAggregatesJobResults';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJob';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobResults(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getAnalyticsUsersDetailsJobResults';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/{jobId}/results","GET",{jobId:e},{cursor:i.cursor,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsUsersDetailsJobsAvailability(){return this.apiClient.callApi("/api/v2/analytics/users/details/jobs/availability","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/me","GET",{},{name:i.name,permission:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedMe(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedMe';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/me","GET",{},{permission:e,pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationDivisionspermittedPagedSubjectId(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationDivisionspermittedPagedSubjectId';if(void 0===i||null===i)throw'Missing the required parameter "permission" when calling getAuthorizationDivisionspermittedPagedSubjectId';return this.apiClient.callApi("/api/v2/authorization/divisionspermitted/paged/{subjectId}","GET",{subjectId:e},{permission:i,pageNumber:t.pageNumber,pageSize:t.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubject(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getAuthorizationSubject';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}","GET",{subjectId:e},{includeDuplicates:i.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAuthorizationSubjectsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/authorization/subjects/me","GET",{},{includeDuplicates:e.includeDuplicates},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getFieldconfig(e){if(void 0===e||null===e)throw'Missing the required parameter "type" when calling getFieldconfig';return this.apiClient.callApi("/api/v2/fieldconfig","GET",{},{type:e},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getProfilesUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/profiles/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jid:this.apiClient.buildCollectionParam(e.jid,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingDirectroutingbackupSettingsMe(){return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserDirectroutingbackupSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getRoutingUserUtilization(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUser(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUser';return this.apiClient.callApi("/api/v2/users/{userId}","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource,state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserAdjacents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserAdjacents';return this.apiClient.callApi("/api/v2/users/{userId}/adjacents","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserCallforwarding(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserDirectreports(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserDirectreports';return this.apiClient.callApi("/api/v2/users/{userId}/directreports","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserFavorites(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserFavorites';return this.apiClient.callApi("/api/v2/users/{userId}/favorites","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserGeolocation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling getUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","GET",{userId:e,clientId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserOutofoffice(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserProfile(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserProfile';return this.apiClient.callApi("/api/v2/users/{userId}/profile","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserProfileskills(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserQueues(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,joined:i.joined,divisionId:this.apiClient.buildCollectionParam(i.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoles(e){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling getUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","GET",{subjectId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutinglanguages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingskills(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortOrder:i.sortOrder},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserRoutingstatus(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSkillgroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSkillgroups';return this.apiClient.callApi("/api/v2/users/{userId}/skillgroups","GET",{userId:e},{pageSize:i.pageSize,after:i.after,before:i.before},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserState(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserStation(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserStation';return this.apiClient.callApi("/api/v2/users/{userId}/station","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserSuperiors(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserSuperiors';return this.apiClient.callApi("/api/v2/users/{userId}/superiors","GET",{userId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserTrustors(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserTrustors';return this.apiClient.callApi("/api/v2/users/{userId}/trustors","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUserVerifiers(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getUserVerifiers';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsers(e){return e=e||{},this.apiClient.callApi("/api/v2/users","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,id:this.apiClient.buildCollectionParam(e.id,"multi"),jabberId:this.apiClient.buildCollectionParam(e.jabberId,"multi"),sortOrder:e.sortOrder,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource,state:e.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersChatsMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/chats/me","GET",{},{excludeClosed:e.excludeClosed,includePresence:e.includePresence,after:e.after},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivities(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities","GET",{},{userId:this.apiClient.buildCollectionParam(e.userId,"multi"),moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivitiesMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/development/activities/me","GET",{},{moduleId:e.moduleId,interval:e.interval,completionInterval:e.completionInterval,overdue:e.overdue,pass:e.pass,pageSize:e.pageSize,pageNumber:e.pageNumber,sortOrder:e.sortOrder,types:this.apiClient.buildCollectionParam(e.types,"multi"),statuses:this.apiClient.buildCollectionParam(e.statuses,"multi"),relationship:this.apiClient.buildCollectionParam(e.relationship,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersDevelopmentActivity(e,i){if(void 0===e||null===e)throw'Missing the required parameter "activityId" when calling getUsersDevelopmentActivity';if(void 0===i||null===i)throw'Missing the required parameter "type" when calling getUsersDevelopmentActivity';return this.apiClient.callApi("/api/v2/users/development/activities/{activityId}","GET",{activityId:e},{type:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersMe(e){return e=e||{},this.apiClient.callApi("/api/v2/users/me","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi"),integrationPresenceSource:e.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getUsersSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getUsersSearch';return this.apiClient.callApi("/api/v2/users/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi"),integrationPresenceSource:i.integrationPresenceSource},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchUser(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUser';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUser';return this.apiClient.callApi("/api/v2/users/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserCallforwarding(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserCallforwarding';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserGeolocation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserGeolocation';if(void 0===i||null===i)throw'Missing the required parameter "clientId" when calling patchUserGeolocation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserGeolocation';return this.apiClient.callApi("/api/v2/users/{userId}/geolocations/{clientId}","PATCH",{userId:e,clientId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueue(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "queueId" when calling patchUserQueue';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchUserQueue';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserQueue';return this.apiClient.callApi("/api/v2/users/{userId}/queues/{queueId}","PATCH",{queueId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserQueues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserQueues';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserQueues';return this.apiClient.callApi("/api/v2/users/{userId}/queues","PATCH",{userId:e},{divisionId:this.apiClient.buildCollectionParam(t.divisionId,"multi")},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguage(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguage';if(void 0===i||null===i)throw'Missing the required parameter "languageId" when calling patchUserRoutinglanguage';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchUserRoutinglanguage';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/{languageId}","PATCH",{userId:e,languageId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutinglanguagesBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutinglanguagesBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutinglanguagesBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchUsersBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchUsersBulk';return this.apiClient.callApi("/api/v2/users/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersActivityQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersActivityQuery';return this.apiClient.callApi("/api/v2/analytics/users/activity/query","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesJobs';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersAggregatesQuery';return this.apiClient.callApi("/api/v2/analytics/users/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsJobs';return this.apiClient.callApi("/api/v2/analytics/users/details/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersDetailsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersDetailsQuery';return this.apiClient.callApi("/api/v2/analytics/users/details/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsUsersObservationsQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsUsersObservationsQuery';return this.apiClient.callApi("/api/v2/analytics/users/observations/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkadd(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkadd';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkadd';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkadd","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkremove(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkremove';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkremove';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkremove","POST",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectBulkreplace(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectBulkreplace';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postAuthorizationSubjectBulkreplace';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/bulkreplace","POST",{subjectId:e},{subjectType:t.subjectType},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postAuthorizationSubjectDivisionRole(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling postAuthorizationSubjectDivisionRole';if(void 0===i||null===i)throw'Missing the required parameter "divisionId" when calling postAuthorizationSubjectDivisionRole';if(void 0===t||null===t)throw'Missing the required parameter "roleId" when calling postAuthorizationSubjectDivisionRole';return this.apiClient.callApi("/api/v2/authorization/subjects/{subjectId}/divisions/{divisionId}/roles/{roleId}","POST",{subjectId:e,divisionId:i,roleId:t},{subjectType:n.subjectType},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUserExternalid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserExternalid';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserExternalid';return this.apiClient.callApi("/api/v2/users/{userId}/externalid","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserInvite(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserInvite';return this.apiClient.callApi("/api/v2/users/{userId}/invite","POST",{userId:e},{force:i.force},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postUserPassword(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserPassword';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserPassword';return this.apiClient.callApi("/api/v2/users/{userId}/password","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutinglanguages(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutinglanguages';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutinglanguages';return this.apiClient.callApi("/api/v2/users/{userId}/routinglanguages","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUserRoutingskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling postUserRoutingskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postUserRoutingskills';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills","POST",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsers';return this.apiClient.callApi("/api/v2/users","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersDevelopmentActivitiesAggregatesQuery(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersDevelopmentActivitiesAggregatesQuery';return this.apiClient.callApi("/api/v2/users/development/activities/aggregates/query","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersMePassword(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersMePassword';return this.apiClient.callApi("/api/v2/users/me/password","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearch';return this.apiClient.callApi("/api/v2/users/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchConversationTarget(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchConversationTarget';return this.apiClient.callApi("/api/v2/users/search/conversation/target","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchQueuemembersManage(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchQueuemembersManage';return this.apiClient.callApi("/api/v2/users/search/queuemembers/manage","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postUsersSearchTeamsAssign(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postUsersSearchTeamsAssign';return this.apiClient.callApi("/api/v2/users/search/teams/assign","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingDirectroutingbackupSettingsMe(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putRoutingDirectroutingbackupSettingsMe';return this.apiClient.callApi("/api/v2/routing/directroutingbackup/settings/me","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserDirectroutingbackupSettings(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserDirectroutingbackupSettings';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserDirectroutingbackupSettings';return this.apiClient.callApi("/api/v2/routing/users/{userId}/directroutingbackup/settings","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putRoutingUserUtilization(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putRoutingUserUtilization';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putRoutingUserUtilization';return this.apiClient.callApi("/api/v2/routing/users/{userId}/utilization","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserCallforwarding(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserCallforwarding';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserCallforwarding';return this.apiClient.callApi("/api/v2/users/{userId}/callforwarding","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserOutofoffice(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserOutofoffice';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserOutofoffice';return this.apiClient.callApi("/api/v2/users/{userId}/outofoffice","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserProfileskills(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserProfileskills';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserProfileskills';return this.apiClient.callApi("/api/v2/users/{userId}/profileskills","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoles(e,i){if(void 0===e||null===e)throw'Missing the required parameter "subjectId" when calling putUserRoles';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoles';return this.apiClient.callApi("/api/v2/users/{subjectId}/roles","PUT",{subjectId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskill(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskill';if(void 0===i||null===i)throw'Missing the required parameter "skillId" when calling putUserRoutingskill';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserRoutingskill';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/{skillId}","PUT",{userId:e,skillId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingskillsBulk(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingskillsBulk';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';return this.apiClient.callApi("/api/v2/users/{userId}/routingskills/bulk","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserRoutingstatus(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserRoutingstatus';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserRoutingstatus';return this.apiClient.callApi("/api/v2/users/{userId}/routingstatus","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserState(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserState';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putUserState';return this.apiClient.callApi("/api/v2/users/{userId}/state","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putUserStationAssociatedstationStationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserStationAssociatedstationStationId';if(void 0===i||null===i)throw'Missing the required parameter "stationId" when calling putUserStationAssociatedstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/associatedstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserStationDefaultstationStationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserStationDefaultstationStationId';if(void 0===i||null===i)throw'Missing the required parameter "stationId" when calling putUserStationDefaultstationStationId';return this.apiClient.callApi("/api/v2/users/{userId}/station/defaultstation/{stationId}","PUT",{userId:e,stationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}putUserVerifier(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putUserVerifier';if(void 0===i||null===i)throw'Missing the required parameter "verifierId" when calling putUserVerifier';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling putUserVerifier';return this.apiClient.callApi("/api/v2/users/{userId}/verifiers/{verifierId}","PUT",{userId:e,verifierId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}}class Re{constructor(e){this.apiClient=e||w.instance}getDate(){return this.apiClient.callApi("/api/v2/date","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getIpranges(){return this.apiClient.callApi("/api/v2/ipranges","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getTimezones(e){return e=e||{},this.apiClient.callApi("/api/v2/timezones","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postCertificateDetails(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postCertificateDetails';return this.apiClient.callApi("/api/v2/certificate/details","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class xe{constructor(e){this.apiClient=e||w.instance}deleteVoicemailMessage(e){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling deleteVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","DELETE",{messageId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteVoicemailMessages(){return this.apiClient.callApi("/api/v2/voicemail/messages","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupMailbox(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupMailbox';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/mailbox","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupMessages';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/messages","GET",{groupId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailGroupPolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling getVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","GET",{groupId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMailbox(){return this.apiClient.callApi("/api/v2/voicemail/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMeMailbox(){return this.apiClient.callApi("/api/v2/voicemail/me/mailbox","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMeMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/me/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMePolicy(){return this.apiClient.callApi("/api/v2/voicemail/me/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessage(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","GET",{messageId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessageMedia(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messageId" when calling getVoicemailMessageMedia';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}/media","GET",{messageId:e},{formatId:i.formatId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","GET",{},{ids:e.ids,expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailPolicy(){return this.apiClient.callApi("/api/v2/voicemail/policy","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailQueueMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "queueId" when calling getVoicemailQueueMessages';return this.apiClient.callApi("/api/v2/voicemail/queues/{queueId}/messages","GET",{queueId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "q64" when calling getVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","GET",{},{q64:e,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserMailbox(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserMailbox';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/mailbox","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserMessages';return this.apiClient.callApi("/api/v2/voicemail/users/{userId}/messages","GET",{userId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getVoicemailUserpolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailGroupPolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "groupId" when calling patchVoicemailGroupPolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailGroupPolicy';return this.apiClient.callApi("/api/v2/voicemail/groups/{groupId}/policy","PATCH",{groupId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailMePolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchVoicemailMePolicy';return this.apiClient.callApi("/api/v2/voicemail/me/policy","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling patchVoicemailMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PATCH",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}patchVoicemailUserpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchVoicemailUserpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PATCH",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/voicemail/messages","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postVoicemailSearch(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postVoicemailSearch';return this.apiClient.callApi("/api/v2/voicemail/search","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "messageId" when calling putVoicemailMessage';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putVoicemailMessage';return this.apiClient.callApi("/api/v2/voicemail/messages/{messageId}","PUT",{messageId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailPolicy(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putVoicemailPolicy';return this.apiClient.callApi("/api/v2/voicemail/policy","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putVoicemailUserpolicy(e,i){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling putVoicemailUserpolicy';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';return this.apiClient.callApi("/api/v2/voicemail/userpolicies/{userId}","PUT",{userId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class We{constructor(e){this.apiClient=e||w.instance}deleteWebchatDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebchatGuestConversationMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling deleteWebchatGuestConversationMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling deleteWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","DELETE",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebchatSettings(){return this.apiClient.callApi("/api/v2/webchat/settings","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatDeployments(){return this.apiClient.callApi("/api/v2/webchat/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMediarequest(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequest';if(void 0===i||null===i)throw'Missing the required parameter "mediaRequestId" when calling getWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","GET",{conversationId:e,mediaRequestId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMediarequests(e){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMediarequests';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests","GET",{conversationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMember(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMember';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling getWebchatGuestConversationMember';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}","GET",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMembers(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMembers';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members","GET",{conversationId:e},{pageSize:i.pageSize,pageNumber:i.pageNumber,excludeDisconnectedMembers:i.excludeDisconnectedMembers},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMessage(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessage';if(void 0===i||null===i)throw'Missing the required parameter "messageId" when calling getWebchatGuestConversationMessage';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages/{messageId}","GET",{conversationId:e,messageId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatGuestConversationMessages(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling getWebchatGuestConversationMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/messages","GET",{conversationId:e},{after:i.after,before:i.before,sortOrder:i.sortOrder,maxResults:i.maxResults},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebchatSettings(){return this.apiClient.callApi("/api/v2/webchat/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchWebchatGuestConversationMediarequest(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling patchWebchatGuestConversationMediarequest';if(void 0===i||null===i)throw'Missing the required parameter "mediaRequestId" when calling patchWebchatGuestConversationMediarequest';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWebchatGuestConversationMediarequest';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/mediarequests/{mediaRequestId}","PATCH",{conversationId:e,mediaRequestId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebchatDeployments';return this.apiClient.callApi("/api/v2/webchat/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversationMemberMessages(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberMessages';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberMessages';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWebchatGuestConversationMemberMessages';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/messages","POST",{conversationId:e,memberId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversationMemberTyping(e,i){if(void 0===e||null===e)throw'Missing the required parameter "conversationId" when calling postWebchatGuestConversationMemberTyping';if(void 0===i||null===i)throw'Missing the required parameter "memberId" when calling postWebchatGuestConversationMemberTyping';return this.apiClient.callApi("/api/v2/webchat/guest/conversations/{conversationId}/members/{memberId}/typing","POST",{conversationId:e,memberId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebchatGuestConversations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebchatGuestConversations';return this.apiClient.callApi("/api/v2/webchat/guest/conversations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putWebchatDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWebchatDeployment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWebchatDeployment';return this.apiClient.callApi("/api/v2/webchat/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWebchatSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling putWebchatSettings';return this.apiClient.callApi("/api/v2/webchat/settings","PUT",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}}class ze{constructor(e){this.apiClient=e||w.instance}deleteWebdeploymentsConfiguration(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling deleteWebdeploymentsConfiguration';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}","DELETE",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsDeploymentCobrowseSessionId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';if(void 0===i||null===i)throw'Missing the required parameter "sessionId" when calling deleteWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","DELETE",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWebdeploymentsTokenRevoke(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/revoke","DELETE",{},{},{"X-Journey-Session-Id":e.xJourneySessionId,"X-Journey-Session-Type":e.xJourneySessionType},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersion(e,i){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersion';if(void 0===i||null===i)throw'Missing the required parameter "versionId" when calling getWebdeploymentsConfigurationVersion';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/{versionId}","GET",{configurationId:e,versionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersions(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersions';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions","GET",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurationVersionsDraft(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling getWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","GET",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsConfigurations(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/configurations","GET",{},{showOnlyPublished:e.showOnlyPublished},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeployment(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","GET",{deploymentId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeploymentCobrowseSessionId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentCobrowseSessionId';if(void 0===i||null===i)throw'Missing the required parameter "sessionId" when calling getWebdeploymentsDeploymentCobrowseSessionId';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/cobrowse/{sessionId}","GET",{deploymentId:e,sessionId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeploymentConfigurations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWebdeploymentsDeploymentConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}/configurations","GET",{deploymentId:e},{type:i.type,expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWebdeploymentsDeployments(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/deployments","GET",{},{expand:this.apiClient.buildCollectionParam(e.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsConfigurationVersionsDraftPublish(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling postWebdeploymentsConfigurationVersionsDraftPublish';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft/publish","POST",{configurationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsConfigurations(e){if(void 0===e||null===e)throw'Missing the required parameter "configurationVersion" when calling postWebdeploymentsConfigurations';return this.apiClient.callApi("/api/v2/webdeployments/configurations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "deployment" when calling postWebdeploymentsDeployments';return this.apiClient.callApi("/api/v2/webdeployments/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsTokenOauthcodegrantjwtexchange(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWebdeploymentsTokenOauthcodegrantjwtexchange';return this.apiClient.callApi("/api/v2/webdeployments/token/oauthcodegrantjwtexchange","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWebdeploymentsTokenRefresh(e){return e=e||{},this.apiClient.callApi("/api/v2/webdeployments/token/refresh","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWebdeploymentsConfigurationVersionsDraft(e,i){if(void 0===e||null===e)throw'Missing the required parameter "configurationId" when calling putWebdeploymentsConfigurationVersionsDraft';if(void 0===i||null===i)throw'Missing the required parameter "configurationVersion" when calling putWebdeploymentsConfigurationVersionsDraft';return this.apiClient.callApi("/api/v2/webdeployments/configurations/{configurationId}/versions/draft","PUT",{configurationId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWebdeploymentsDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWebdeploymentsDeployment';if(void 0===i||null===i)throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';return this.apiClient.callApi("/api/v2/webdeployments/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Be{constructor(e){this.apiClient=e||w.instance}getWebmessagingMessages(e){return e=e||{},this.apiClient.callApi("/api/v2/webmessaging/messages","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}}class Le{constructor(e){this.apiClient=e||w.instance}deleteWidgetsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling deleteWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","DELETE",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWidgetsDeployment(e){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling getWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","GET",{deploymentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWidgetsDeployments(){return this.apiClient.callApi("/api/v2/widgets/deployments","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWidgetsDeployments(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWidgetsDeployments';return this.apiClient.callApi("/api/v2/widgets/deployments","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}putWidgetsDeployment(e,i){if(void 0===e||null===e)throw'Missing the required parameter "deploymentId" when calling putWidgetsDeployment';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWidgetsDeployment';return this.apiClient.callApi("/api/v2/widgets/deployments/{deploymentId}","PUT",{deploymentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}}class Ne{constructor(e){this.apiClient=e||w.instance}deleteWorkforcemanagementBusinessunit(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","DELETE",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitActivitycode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling deleteWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","DELETE",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitPlanninggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling deleteWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","DELETE",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitSchedulingRun(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling deleteWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","DELETE",{businessUnitId:e,runId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitServicegoaltemplate(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling deleteWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","DELETE",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitStaffinggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling deleteWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","DELETE",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWeekSchedule(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling deleteWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","DELETE",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling deleteWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","DELETE",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWorkplanbid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","DELETE",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling deleteWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","DELETE",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","DELETE",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunit(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","DELETE",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling deleteWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","DELETE",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling deleteWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","DELETE",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitWorkplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling deleteWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","DELETE",{managementUnitId:e,workPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}deleteWorkforcemanagementManagementunitWorkplanrotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling deleteWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","DELETE",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherence(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getWorkforcemanagementAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence","GET",{},{userId:this.apiClient.buildCollectionParam(e,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceExplanation(e){if(void 0===e||null===e)throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/{explanationId}","GET",{explanationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceExplanationsJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceExplanationsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceHistoricalBulkJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalBulkJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAdherenceHistoricalJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdherenceHistoricalJob';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentAdherenceExplanation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentAdherenceExplanation';if(void 0===i||null===i)throw'Missing the required parameter "explanationId" when calling getWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","GET",{agentId:e,explanationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentManagementunit(e){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementAgentManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/managementunit","GET",{agentId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAgentsMeManagementunit(){return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/managementunit","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsOffersJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsOffersSearchJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsOffersSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsSettings(){return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/settings","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTrade(e){if(void 0===e||null===e)throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","GET",{tradeId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTrades(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","GET",{},{forceAsync:e.forceAsync},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTradesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementAlternativeshiftsTradesStateJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAlternativeshiftsTradesStateJob';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivitycode(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling getWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","GET",{businessUnitId:e,activityCodeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","GET",{businessUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplan';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","GET",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplanRunsJob(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';if(void 0===t||null===t)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitActivityplanRunsJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs/{jobId}","GET",{businessUnitId:e,activityPlanId:i,jobId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","GET",{businessUnitId:e},{state:i.state},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitActivityplansJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitActivityplansJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/jobs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsSettings(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsTrade(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';if(void 0===i||null===i)throw'Missing the required parameter "tradeId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/{tradeId}","GET",{businessUnitId:e,tradeId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';if(void 0===i||null===i)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementBusinessunitAlternativeshiftsTradesSearchJob';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search/jobs/{jobId}","GET",{businessUnitId:e,jobId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitIntradayPlanninggroups(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';if(void 0===i||null===i)throw'Missing the required parameter "_date" when calling getWorkforcemanagementBusinessunitIntradayPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday/planninggroups","GET",{businessUnitId:e},{date:i},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitManagementunits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitManagementunits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/managementunits","GET",{businessUnitId:e},{feature:i.feature,divisionId:i.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitPlanninggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling getWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","GET",{businessUnitId:e,planningGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitPlanninggroups(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRun(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","GET",{businessUnitId:e,runId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRunResult(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===t||null===t)throw'Missing the required parameter "managementUnitIds" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';if(void 0===n||null===n)throw'Missing the required parameter "expand" when calling getWorkforcemanagementBusinessunitSchedulingRunResult';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}/result","GET",{businessUnitId:e,runId:i},{managementUnitIds:this.apiClient.buildCollectionParam(t,"multi"),expand:this.apiClient.buildCollectionParam(n,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitSchedulingRuns(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitSchedulingRuns';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitServicegoaltemplate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling getWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","GET",{businessUnitId:e,serviceGoalTemplateId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","GET",{businessUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitStaffinggroup(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling getWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","GET",{businessUnitId:e,staffingGroupId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementBusinessunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}","GET",{businessUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","GET",{businessUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","GET",{businessUnitId:e},{managementUnitId:i.managementUnitId,forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedule(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{businessUnitId:e,weekId:i,scheduleId:t},{expand:n.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleGenerationresults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/generationresults","GET",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHeadcountforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/headcountforecast","GET",{businessUnitId:e,weekId:i,scheduleId:t},{forceDownload:n.forceDownload},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';if(void 0===n||null===n)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementBusinessunitWeekScheduleHistoryAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/history/agents/{agentId}","GET",{businessUnitId:e,weekId:i,scheduleId:t,agentId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictions';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions","GET",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';if(void 0===n||null===n)throw'Missing the required parameter "recalculationId" when calling getWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculation';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/{recalculationId}","GET",{businessUnitId:e,weekId:i,scheduleId:t,recalculationId:n},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekSchedules(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","GET",{businessUnitId:e,weekId:i},{includeOnlyPublished:t.includeOnlyPublished,expand:t.expand},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecast(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecast';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{expand:this.apiClient.buildCollectionParam(n.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastData(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastData';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/data","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{weekNumber:n.weekNumber,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastGenerationresults';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/generationresults","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastLongtermforecastdata';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/longtermforecastdata","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/planninggroups","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecastStaffingrequirement';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/staffingrequirement","GET",{businessUnitId:e,weekDateId:i,forecastId:t},{weekNumbers:this.apiClient.buildCollectionParam(n.weekNumbers,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWeekShorttermforecasts(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementBusinessunitWeekShorttermforecasts';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts","GET",{businessUnitId:e,weekDateId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbid(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","GET",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","GET",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementBusinessunitWorkplanbidGroupsSummary';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/summary","GET",{businessUnitId:e,bidId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitWorkplanbids(e){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling getWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","GET",{businessUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","GET",{},{feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementBusinessunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementCalendarDataIcs(e){if(void 0===e||null===e)throw'Missing the required parameter "calendarId" when calling getWorkforcemanagementCalendarDataIcs';return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/data/ics","GET",{},{calendarId:e},{},{},null,["PureCloud OAuth"],["application/json"],["text/calendar"])}getWorkforcemanagementCalendarUrlIcs(){return this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/deletejob","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementHistoricaldataImportstatus(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/importstatus","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementIntegrationsHris(){return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementIntegrationsHrisTimeofftypesJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementIntegrationsHrisTimeofftypesJob';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/timeofftypes/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitActivitycodes(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/activitycodes","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAdherence(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAdherence';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/adherence","GET",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAgent(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgent';if(void 0===i||null===i)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgent';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}","GET",{managementUnitId:e,agentId:i},{excludeCapabilities:t.excludeCapabilities,expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitAgentShifttrades(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitAgentShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "agentId" when calling getWorkforcemanagementManagementunitAgentShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/{agentId}/shifttrades","GET",{managementUnitId:e,agentId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitShifttradesMatched(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesMatched';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/matched","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitShifttradesUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitShifttradesUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shifttrades/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeofflimit(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling getWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","GET",{managementUnitId:e,timeOffLimitId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeofflimits(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeoffplan(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling getWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","GET",{managementUnitId:e,timeOffPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitTimeoffplans(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequest(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","GET",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementManagementunitUserTimeoffrequestTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeofflimits","GET",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUserTimeoffrequests(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling getWorkforcemanagementManagementunitUserTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests","GET",{managementUnitId:e,userId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitUsers(e){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitUsers';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users","GET",{managementUnitId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekSchedule(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling getWorkforcemanagementManagementunitWeekSchedule';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules/{scheduleId}","GET",{managementUnitId:e,weekId:i,scheduleId:t},{expand:n.expand,forceDownloadService:n.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekSchedules(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling getWorkforcemanagementManagementunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekId}/schedules","GET",{managementUnitId:e,weekId:i},{includeOnlyPublished:t.includeOnlyPublished,earliestWeekDate:t.earliestWeekDate,latestWeekDate:t.latestWeekDate},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWeekShifttrades(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWeekShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling getWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","GET",{managementUnitId:e,weekDateId:i},{evaluateMatches:t.evaluateMatches,forceDownloadService:t.forceDownloadService},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling getWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","GET",{managementUnitId:e,workPlanId:i},{includeOnly:this.apiClient.buildCollectionParam(t.includeOnly,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplanrotation(e,i){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling getWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","GET",{managementUnitId:e,workPlanRotationId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling getWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","GET",{managementUnitId:e},{expand:this.apiClient.buildCollectionParam(i.expand,"multi"),exclude:this.apiClient.buildCollectionParam(i.exclude,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","GET",{},{pageSize:e.pageSize,pageNumber:e.pageNumber,expand:e.expand,feature:e.feature,divisionId:e.divisionId},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementManagementunitsDivisionviews(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/divisionviews","GET",{},{divisionId:this.apiClient.buildCollectionParam(e.divisionId,"multi")},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementNotifications(){return this.apiClient.callApi("/api/v2/workforcemanagement/notifications","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementSchedulingjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementSchedulingjob';return this.apiClient.callApi("/api/v2/workforcemanagement/schedulingjobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementShifttrades(){return this.apiClient.callApi("/api/v2/workforcemanagement/shifttrades","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementShrinkageJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementShrinkageJob';return this.apiClient.callApi("/api/v2/workforcemanagement/shrinkage/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffbalanceJob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementTimeoffbalanceJob';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs/{jobId}","GET",{jobId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequest(e){if(void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequestWaitlistpositions(e){if(void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling getWorkforcemanagementTimeoffrequestWaitlistpositions';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}/waitlistpositions","GET",{timeOffRequestId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementTimeoffrequests(){return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementUserWorkplanbidranks(e){if(void 0===e||null===e)throw'Missing the required parameter "userId" when calling getWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","GET",{userId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbidPreferences(e){if(void 0===e||null===e)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbidWorkplans(e){if(void 0===e||null===e)throw'Missing the required parameter "bidId" when calling getWorkforcemanagementWorkplanbidWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/workplans","GET",{bidId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getWorkforcemanagementWorkplanbids(){return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAgentAdherenceExplanation(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(void 0===i||null===i)throw'Missing the required parameter "explanationId" when calling patchWorkforcemanagementAgentAdherenceExplanation';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAgentAdherenceExplanation';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/{explanationId}","PATCH",{agentId:e,explanationId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAlternativeshiftsTrade(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementAlternativeshiftsTrade';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/{tradeId}","PATCH",{tradeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementAlternativeshiftsTradesStateJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchWorkforcemanagementAlternativeshiftsTradesStateJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades/state/jobs","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunit';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}","PATCH",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitActivitycode(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivitycode';if(void 0===i||null===i)throw'Missing the required parameter "activityCodeId" when calling patchWorkforcemanagementBusinessunitActivitycode';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes/{activityCodeId}","PATCH",{businessUnitId:e,activityCodeId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitActivityplan(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling patchWorkforcemanagementBusinessunitActivityplan';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitActivityplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}","PATCH",{businessUnitId:e,activityPlanId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitAlternativeshiftsSettings(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitAlternativeshiftsSettings';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/settings","PATCH",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitPlanninggroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';if(void 0===i||null===i)throw'Missing the required parameter "planningGroupId" when calling patchWorkforcemanagementBusinessunitPlanninggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups/{planningGroupId}","PATCH",{businessUnitId:e,planningGroupId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitSchedulingRun(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';if(void 0===i||null===i)throw'Missing the required parameter "runId" when calling patchWorkforcemanagementBusinessunitSchedulingRun';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/scheduling/runs/{runId}","PATCH",{businessUnitId:e,runId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitServicegoaltemplate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';if(void 0===i||null===i)throw'Missing the required parameter "serviceGoalTemplateId" when calling patchWorkforcemanagementBusinessunitServicegoaltemplate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates/{serviceGoalTemplateId}","PATCH",{businessUnitId:e,serviceGoalTemplateId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitStaffinggroup(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';if(void 0===i||null===i)throw'Missing the required parameter "staffingGroupId" when calling patchWorkforcemanagementBusinessunitStaffinggroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/{staffingGroupId}","PATCH",{businessUnitId:e,staffingGroupId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitTimeoffplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementBusinessunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{businessUnitId:e,timeOffPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbid(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbid';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling patchWorkforcemanagementBusinessunitWorkplanbid';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}","PATCH",{businessUnitId:e,bidId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbidGroup(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroup';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}","PATCH",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';if(void 0===t||null===t)throw'Missing the required parameter "bidGroupId" when calling patchWorkforcemanagementBusinessunitWorkplanbidGroupPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups/{bidGroupId}/preferences","PATCH",{businessUnitId:e,bidId:i,bidGroupId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunit(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitAgents(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgents';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitAgentsWorkplansBulk(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitAgentsWorkplansBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/bulk","PATCH",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeofflimit(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling patchWorkforcemanagementManagementunitTimeofflimit';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}","PATCH",{managementUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeoffplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffplan';if(void 0===i||null===i)throw'Missing the required parameter "timeOffPlanId" when calling patchWorkforcemanagementManagementunitTimeoffplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans/{timeOffPlanId}","PATCH",{managementUnitId:e,timeOffPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(void 0===i||null===i)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';if(void 0===t||null===t)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitTimeoffrequestUserIntegrationstatus';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/{timeOffRequestId}/users/{userId}/integrationstatus","PATCH",{managementUnitId:e,timeOffRequestId:i,userId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitUserTimeoffrequest(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementManagementunitUserTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}","PATCH",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWeekShifttrade(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===t||null===t)throw'Missing the required parameter "tradeId" when calling patchWorkforcemanagementManagementunitWeekShifttrade';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling patchWorkforcemanagementManagementunitWeekShifttrade';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}","PATCH",{managementUnitId:e,weekDateId:i,tradeId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWorkplan(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplan';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling patchWorkforcemanagementManagementunitWorkplan';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}","PATCH",{managementUnitId:e,workPlanId:i},{validationMode:t.validationMode},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementManagementunitWorkplanrotation(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling patchWorkforcemanagementManagementunitWorkplanrotation';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}","PATCH",{managementUnitId:e,workPlanRotationId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementTimeoffrequest(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "timeOffRequestId" when calling patchWorkforcemanagementTimeoffrequest';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/{timeOffRequestId}","PATCH",{timeOffRequestId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementUserWorkplanbidranks(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "userId" when calling patchWorkforcemanagementUserWorkplanbidranks';return this.apiClient.callApi("/api/v2/workforcemanagement/users/{userId}/workplanbidranks","PATCH",{userId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementUsersWorkplanbidranksBulk(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling patchWorkforcemanagementUsersWorkplanbidranksBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/users/workplanbidranks/bulk","PATCH",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}patchWorkforcemanagementWorkplanbidPreferences(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "bidId" when calling patchWorkforcemanagementWorkplanbidPreferences';return this.apiClient.callApi("/api/v2/workforcemanagement/workplanbids/{bidId}/preferences","PATCH",{bidId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceExplanations(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceExplanationsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/adherence/explanations/query","POST",{},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceHistorical(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAdherenceHistoricalBulk(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/adherence/historical/bulk","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentAdherenceExplanations(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanations';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanations';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations","POST",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentAdherenceExplanationsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "agentId" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/adherence/explanations/query","POST",{agentId:e},{forceAsync:t.forceAsync,forceDownloadService:t.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgents(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentsIntegrationsHrisQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agents/integrations/hris/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentsMePossibleworkshifts(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAgentsMePossibleworkshifts';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/me/possibleworkshifts","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAgentschedulesMine(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/agentschedules/mine","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsOffersJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsOffersSearchJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsOffersSearchJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/offers/search/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementAlternativeshiftsTrades(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementAlternativeshiftsTrades';return this.apiClient.callApi("/api/v2/workforcemanagement/alternativeshifts/trades","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivitycodes(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivitycodes';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activitycodes","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivityplanRunsJobs(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';if(void 0===i||null===i)throw'Missing the required parameter "activityPlanId" when calling postWorkforcemanagementBusinessunitActivityplanRunsJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans/{activityPlanId}/runs/jobs","POST",{businessUnitId:e,activityPlanId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitActivityplans(e,i){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitActivityplans';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitActivityplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/activityplans","POST",{businessUnitId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAdherenceExplanationsQuery(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAdherenceExplanationsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/adherence/explanations/query","POST",{businessUnitId:e},{forceAsync:t.forceAsync,forceDownloadService:t.forceDownloadService},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAgentschedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/agentschedules/search","POST",{businessUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitAlternativeshiftsTradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/alternativeshifts/trades/search","POST",{businessUnitId:e},{forceAsync:t.forceAsync},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitIntraday(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitIntraday';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/intraday","POST",{businessUnitId:e},{forceAsync:i.forceAsync},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitPlanninggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitPlanninggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/planninggroups","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitServicegoaltemplates(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitServicegoaltemplates';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/servicegoaltemplates","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitStaffinggroups(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitStaffinggroupsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitStaffinggroupsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/staffinggroups/query","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/values/query","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeoffplans","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleAgentschedulesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/agentschedules/query","POST",{businessUnitId:e,weekId:i,scheduleId:t},{forceAsync:a.forceAsync,forceDownloadService:a.forceDownloadService},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleCopy(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/copy","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculations';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekSchedulePerformancepredictionsRecalculationsUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/performancepredictions/recalculations/uploadurl","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleReschedule(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleReschedule';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/reschedule","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleUpdate(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "scheduleId" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekScheduleUpdateUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/{scheduleId}/update/uploadurl","POST",{businessUnitId:e,weekId:i,scheduleId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedules(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedules';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedules';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesGenerate(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/generate","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekId" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekSchedulesImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekId}/schedules/import/uploadurl","POST",{businessUnitId:e,weekId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastCopy(e,i,t,n,a){if(a=a||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===t||null===t)throw'Missing the required parameter "forecastId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/{forecastId}/copy","POST",{businessUnitId:e,weekDateId:i,forecastId:t},{forceAsync:a.forceAsync},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsGenerate';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/generate","POST",{businessUnitId:e,weekDateId:i},{forceAsync:n.forceAsync},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsImport(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImport';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import","POST",{businessUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementBusinessunitWeekShorttermforecastsImportUploadurl';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/weeks/{weekDateId}/shorttermforecasts/import/uploadurl","POST",{businessUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbidCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/copy","POST",{businessUnitId:e,bidId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbidGroups(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';if(void 0===i||null===i)throw'Missing the required parameter "bidId" when calling postWorkforcemanagementBusinessunitWorkplanbidGroups';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids/{bidId}/groups","POST",{businessUnitId:e,bidId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunitWorkplanbids(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling postWorkforcemanagementBusinessunitWorkplanbids';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/workplanbids","POST",{businessUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementBusinessunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/businessunits","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementCalendarUrlIcs(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/calendar/url/ics","POST",{},{language:e.language},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementHistoricaldataDeletejob(){return this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/deletejob","POST",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementHistoricaldataValidate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/historicaldata/validate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementIntegrationsHriTimeofftypesJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "hrisIntegrationId" when calling postWorkforcemanagementIntegrationsHriTimeofftypesJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/integrations/hris/{hrisIntegrationId}/timeofftypes/jobs","POST",{hrisIntegrationId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitAgentsWorkplansQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentsWorkplansQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agents/workplans/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitAgentschedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitAgentschedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/agentschedules/search","POST",{managementUnitId:e},{forceAsync:i.forceAsync,forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitHistoricaladherencequery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitHistoricaladherencequery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/historicaladherencequery","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitMove(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitMove';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/move","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitSchedulesSearch(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitSchedulesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/schedules/search","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitShrinkageJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/shrinkage/jobs","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeofflimits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimits';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeofflimitsValuesQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeofflimitsValuesQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/values/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffplans","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequests(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequests';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsIntegrationstatusQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/integrationstatus/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/query","POST",{managementUnitId:e},{forceDownloadService:i.forceDownloadService},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitTimeoffrequestsWaitlistpositionsQuery';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeoffrequests/waitlistpositions/query","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffbalanceJobs(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitUserTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';if(void 0===t||null===t)throw'Missing the required parameter "timeOffRequestId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/{timeOffRequestId}/timeoffbalance/jobs","POST",{managementUnitId:e,userId:i,timeOffRequestId:t},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';if(void 0===i||null===i)throw'Missing the required parameter "userId" when calling postWorkforcemanagementManagementunitUserTimeoffrequestsEstimate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/users/{userId}/timeoffrequests/estimate","POST",{managementUnitId:e,userId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradeMatch(e,i,t,n){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===t||null===t)throw'Missing the required parameter "tradeId" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';if(void 0===n||null===n)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradeMatch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/{tradeId}/match","POST",{managementUnitId:e,weekDateId:i,tradeId:t},{},{},{},n,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttrades(e,i,t){if(void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttrades';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttrades';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades","POST",{managementUnitId:e,weekDateId:i},{},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradesSearch(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesSearch';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/search","POST",{managementUnitId:e,weekDateId:i},{forceDownloadService:n.forceDownloadService},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWeekShifttradesStateBulk(e,i,t,n){if(n=n||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(void 0===i||null===i)throw'Missing the required parameter "weekDateId" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';if(void 0===t||null===t)throw'Missing the required parameter "body" when calling postWorkforcemanagementManagementunitWeekShifttradesStateBulk';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/weeks/{weekDateId}/shifttrades/state/bulk","POST",{managementUnitId:e,weekDateId:i},{forceAsync:n.forceAsync},{},{},t,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanCopy';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/copy","POST",{managementUnitId:e,workPlanId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanValidate(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanValidate';if(void 0===i||null===i)throw'Missing the required parameter "workPlanId" when calling postWorkforcemanagementManagementunitWorkplanValidate';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans/{workPlanId}/validate","POST",{managementUnitId:e,workPlanId:i},{expand:this.apiClient.buildCollectionParam(t.expand,"multi")},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanrotationCopy(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';if(void 0===i||null===i)throw'Missing the required parameter "workPlanRotationId" when calling postWorkforcemanagementManagementunitWorkplanrotationCopy';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations/{workPlanRotationId}/copy","POST",{managementUnitId:e,workPlanRotationId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplanrotations(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplanrotations';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplanrotations","POST",{managementUnitId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunitWorkplans(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling postWorkforcemanagementManagementunitWorkplans';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/workplans","POST",{managementUnitId:e},{validationMode:i.validationMode},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementManagementunits(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/managementunits","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementNotificationsUpdate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/notifications/update","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/schedules","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTeamAdherenceHistorical(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamAdherenceHistorical';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/adherence/historical","POST",{teamId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTeamShrinkageJobs(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "teamId" when calling postWorkforcemanagementTeamShrinkageJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/teams/{teamId}/shrinkage/jobs","POST",{teamId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffbalanceJobs(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postWorkforcemanagementTimeoffbalanceJobs';return this.apiClient.callApi("/api/v2/workforcemanagement/timeoffbalance/jobs","POST",{},{},{},{},e,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeofflimitsAvailableQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeofflimits/available/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequests(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequestsEstimate(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/estimate","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}postWorkforcemanagementTimeoffrequestsIntegrationstatusQuery(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests/integrationstatus/query","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementAgentIntegrationsHris(e,i){if(void 0===e||null===e)throw'Missing the required parameter "agentId" when calling putWorkforcemanagementAgentIntegrationsHris';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putWorkforcemanagementAgentIntegrationsHris';return this.apiClient.callApi("/api/v2/workforcemanagement/agents/{agentId}/integrations/hris","PUT",{agentId:e},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementBusinessunitTimeofflimitValues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "businessUnitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementBusinessunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/businessunits/{businessUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{businessUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}putWorkforcemanagementManagementunitTimeofflimitValues(e,i,t){if(t=t||{},void 0===e||null===e)throw'Missing the required parameter "managementUnitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';if(void 0===i||null===i)throw'Missing the required parameter "timeOffLimitId" when calling putWorkforcemanagementManagementunitTimeofflimitValues';return this.apiClient.callApi("/api/v2/workforcemanagement/managementunits/{managementUnitId}/timeofflimits/{timeOffLimitId}/values","PUT",{managementUnitId:e,timeOffLimitId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}}return new class{constructor(){this.ApiClient=new w,this.ApiClientClass=w,this.AgentAssistantsApi=v,this.AgentCopilotApi=C,this.AgentUIApi=I,this.AlertingApi=f,this.AnalyticsApi=A,this.ArchitectApi=b,this.AuditApi=j,this.AuthorizationApi=P,this.BillingApi=y,this.CarrierServicesApi=O,this.ChatApi=M,this.CoachingApi=T,this.ContentManagementApi=q,this.ConversationsApi=S,this.DataExtensionsApi=k,this.DataPrivacyApi=E,this.DownloadsApi=G,this.EmailsApi=U,this.EmployeeEngagementApi=D,this.EventsApi=R,this.ExternalContactsApi=x,this.FaxApi=W,this.FlowsApi=z,this.GamificationApi=B,this.GeneralDataProtectionRegulationApi=L,this.GeolocationApi=N,this.GreetingsApi=K,this.GroupsApi=J,this.IdentityProviderApi=V,this.InfrastructureAsCodeApi=F,this.IntegrationsApi=Q,this.JourneyApi=_,this.KnowledgeApi=H,this.LanguageUnderstandingApi=$,this.LanguagesApi=Z,this.LearningApi=X,this.LicenseApi=Y,this.LocationsApi=ee,this.LogCaptureApi=ie,this.MessagingApi=te,this.MobileDevicesApi=ne,this.NotificationsApi=ae,this.OAuthApi=oe,this.ObjectsApi=re,this.OperationalEventsApi=le,this.OrganizationApi=se,this.OrganizationAuthorizationApi=pe,this.OutboundApi=ue,this.PresenceApi=de,this.ProcessAutomationApi=ce,this.QualityApi=ge,this.RecordingApi=he,this.ResponseManagementApi=me,this.RoutingApi=we,this.SCIMApi=ve,this.ScreenRecordingApi=Ce,this.ScriptsApi=Ie,this.SearchApi=fe,this.SettingsApi=Ae,this.SocialMediaApi=be,this.SpeechTextAnalyticsApi=je,this.StationsApi=Pe,this.SuggestApi=ye,this.TaskManagementApi=Oe,this.TeamsApi=Me,this.TelephonyApi=Te,this.TelephonyProvidersEdgeApi=qe,this.TextbotsApi=Se,this.TokensApi=ke,this.UploadsApi=Ee,this.UsageApi=Ge,this.UserRecordingsApi=Ue,this.UsersApi=De,this.UtilitiesApi=Re,this.VoicemailApi=xe,this.WebChatApi=We,this.WebDeploymentsApi=ze,this.WebMessagingApi=Be,this.WidgetsApi=Le,this.WorkforceManagementApi=Ne,this.PureCloudRegionHosts=l}}});
\ No newline at end of file
diff --git a/build/dist/web-cjs/bundle.js b/build/dist/web-cjs/bundle.js
index 7783cfc9..1c94143b 100644
--- a/build/dist/web-cjs/bundle.js
+++ b/build/dist/web-cjs/bundle.js
@@ -882,7 +882,7 @@ return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url)
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
},{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 211.0.0
+ * @version 211.1.0
*/var ApiClient=/*#__PURE__*/function(){/**
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
* application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -1093,7 +1093,7 @@ if(error.response){_this10.config.logger.log('error',error.response.status,'POST
* @description Utility function to create the request for auth requests
* @param {string} encodedData - Base64 encoded client and clientSecret pair
* @param {object} data - data to url form encode
- */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions(loginBasePath,"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
+ */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
* @description Handles an expired access token. Only available in node apps.
* @param {string} statusCode - The status code of a request
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this11=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this11.refreshInProgress){_this11.refreshInProgress=true;_this11.refreshCodeAuthorizationGrant(_this11.clientId,_this11.clientSecret,_this11.authData.refreshToken).then(function(){_this11.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
@@ -1219,7 +1219,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
* AgentAssistants service.
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentAssistantsApi.
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -1320,7 +1320,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
* AgentCopilot service.
* @module purecloud-platform-client-v2/api/AgentCopilotApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentCopilotApi.
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -1342,7 +1342,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
* AgentUI service.
* @module purecloud-platform-client-v2/api/AgentUIApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentUIApi.
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -1376,7 +1376,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AlertingApi.
* @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -1533,7 +1533,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -2155,7 +2155,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ArchitectApi.
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -3247,7 +3247,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AuditApi.
* @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -3297,7 +3297,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -3620,7 +3620,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new BillingApi.
* @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -3644,7 +3644,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new CarrierServicesApi.
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -3664,7 +3664,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ChatApi.
* @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -3889,7 +3889,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new CoachingApi.
* @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -4042,7 +4042,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ContentManagementApi.
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -4324,7 +4324,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ConversationsApi.
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -6052,7 +6052,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DataExtensionsApi.
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -6073,7 +6073,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
* DataPrivacy service.
* @module purecloud-platform-client-v2/api/DataPrivacyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DataPrivacyApi.
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -6113,7 +6113,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DownloadsApi.
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -6132,7 +6132,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EmailsApi.
* @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -6150,7 +6150,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
* EmployeeEngagement service.
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EmployeeEngagementApi.
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -6188,7 +6188,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EventsApi.
* @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -6213,7 +6213,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ExternalContactsApi.
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -6804,7 +6804,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new FaxApi.
* @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -6853,7 +6853,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new FlowsApi.
* @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -6901,7 +6901,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GamificationApi.
* @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -7441,7 +7441,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GeneralDataProtectionRegulationApi.
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -7476,7 +7476,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GeolocationApi.
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -7510,7 +7510,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GreetingsApi.
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -7617,7 +7617,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GroupsApi.
* @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -7750,7 +7750,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new IdentityProviderApi.
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -7906,7 +7906,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new InfrastructureAsCodeApi.
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -7960,7 +7960,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new IntegrationsApi.
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -8595,7 +8595,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new JourneyApi.
* @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -9072,7 +9072,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new KnowledgeApi.
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -10142,7 +10142,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LanguageUnderstandingApi.
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -10402,7 +10402,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LanguagesApi.
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -10457,7 +10457,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LearningApi.
* @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -10728,7 +10728,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LicenseApi.
* @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -10782,7 +10782,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LocationsApi.
* @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -10841,7 +10841,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LogCaptureApi.
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -10891,7 +10891,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new MessagingApi.
* @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -10981,7 +10981,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new MobileDevicesApi.
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -11020,7 +11020,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new NotificationsApi.
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -11077,7 +11077,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OAuthApi.
* @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -11162,7 +11162,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ObjectsApi.
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -11233,7 +11233,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OperationalEventsApi.
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -11264,7 +11264,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OrganizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -11389,7 +11389,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OrganizationAuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -11723,7 +11723,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OutboundApi.
* @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -12830,7 +12830,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new PresenceApi.
* @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -13003,7 +13003,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ProcessAutomationApi.
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -13066,7 +13066,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new QualityApi.
* @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -13545,7 +13545,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new RecordingApi.
* @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -13957,7 +13957,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ResponseManagementApi.
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -14078,7 +14078,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new RoutingApi.
* @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -15084,7 +15084,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SCIMApi.
* @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -15309,7 +15309,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScreenRecordingApi=/*#__PURE__*/function(){/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ScreenRecordingApi.
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -15324,7 +15324,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/return _createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ScriptsApi.
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -15460,7 +15460,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SearchApi.
* @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -15632,7 +15632,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SettingsApi.
* @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -15682,7 +15682,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
* SocialMedia service.
* @module purecloud-platform-client-v2/api/SocialMediaApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SocialMediaApi.
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -15947,7 +15947,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SpeechTextAnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -16246,7 +16246,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new StationsApi.
* @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -16278,7 +16278,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SuggestApi.
* @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -16318,7 +16318,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TaskManagementApi.
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -16724,7 +16724,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TeamsApi.
* @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -16804,7 +16804,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TelephonyApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -16851,7 +16851,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TelephonyProvidersEdgeApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -17686,7 +17686,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TextbotsApi.
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -17721,7 +17721,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TokensApi.
* @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -17755,7 +17755,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UploadsApi.
* @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -17821,7 +17821,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UsageApi.
* @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -17875,7 +17875,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UserRecordingsApi.
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -17932,7 +17932,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UsersApi.
* @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -18629,7 +18629,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UtilitiesApi.
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -18656,7 +18656,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new VoicemailApi.
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -18818,7 +18818,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebChatApi.
* @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -18953,7 +18953,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebDeploymentsApi.
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -19074,7 +19074,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebMessagingApi.
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -19090,7 +19090,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WidgetsApi.
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -19125,7 +19125,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WorkforceManagementApi.
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -20902,7 +20902,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
*
*
* @module purecloud-platform-client-v2/index
- * @version 211.0.0
+ * @version 211.1.0
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
* The ApiClient constructor.
* @property {module:purecloud-platform-client-v2/ApiClient}
diff --git a/build/dist/web-cjs/purecloud-platform-client-v2.js b/build/dist/web-cjs/purecloud-platform-client-v2.js
index 2afde178..b416f5cd 100644
--- a/build/dist/web-cjs/purecloud-platform-client-v2.js
+++ b/build/dist/web-cjs/purecloud-platform-client-v2.js
@@ -3382,7 +3382,7 @@ module.exports = Math.abs;
},{}],34:[function(require,module,exports){
'use strict';
-/** @type {import('./abs')} */
+/** @type {import('./floor')} */
module.exports = Math.floor;
},{}],35:[function(require,module,exports){
@@ -12300,7 +12300,7 @@ return _createClass(HttpRequestOptions,[{key:"setUrl",value:function setUrl(url)
var DefaultHttpClient=/*#__PURE__*/function(_AbstractHttpClient){function DefaultHttpClient(timeout,httpsAgent){var _this2;_classCallCheck(this,DefaultHttpClient);_this2=_callSuper(this,DefaultHttpClient);if(timeout!==null&&timeout!==undefined)_this2.setTimeout(timeout);else _this2.timeout=16000;if(httpsAgent!==null&&httpsAgent!==undefined)_this2.setHttpsAgent(httpsAgent);else _this2.httpsAgent;_this2._axiosInstance=axios$1.create({});return _this2;}_inherits(DefaultHttpClient,_AbstractHttpClient);return _createClass(DefaultHttpClient,[{key:"request",value:function request(httpRequestOptions){if(!(httpRequestOptions instanceof HttpRequestOptions)){throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");}var config=this.toAxiosConfig(httpRequestOptions);return this._axiosInstance.request(config);}// Method to generate Axios-compatible config
},{key:"toAxiosConfig",value:function toAxiosConfig(httpRequestOptions){if(!httpRequestOptions.url||!httpRequestOptions.method){throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");}var config={url:httpRequestOptions.url,method:httpRequestOptions.method};if(httpRequestOptions.params)config.params=httpRequestOptions.params;if(httpRequestOptions.headers)config.headers=httpRequestOptions.headers;if(httpRequestOptions.data)config.data=httpRequestOptions.data;if(this.timeout!=null&&this.timeout!=undefined)config.timeout=this.timeout;if(this.httpsAgent)config.httpsAgent=this.httpsAgent;return config;}}]);}(AbstractHttpClient);/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 211.0.0
+ * @version 211.1.0
*/var ApiClient=/*#__PURE__*/function(){/**
* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
* application to use this class directly - the *Api and model classes provide the public API for the service. The
@@ -12511,7 +12511,7 @@ if(error.response){_this10.config.logger.log('error',error.response.status,'POST
* @description Utility function to create the request for auth requests
* @param {string} encodedData - Base64 encoded client and clientSecret pair
* @param {object} data - data to url form encode
- */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions(loginBasePath,"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
+ */},{key:"_formAuthRequest",value:function _formAuthRequest(encodedData,data){var loginBasePath=this.config.getConfUrl('login',"https://login.".concat(this.config.environment));var headers={'Authorization':'Basic '+encodedData,'Content-Type':'application/x-www-form-urlencoded'};var requestOptions=new HttpRequestOptions("".concat(loginBasePath,"/oauth/token"),"POST",headers,null,qs__default["default"].stringify(data),this.timeout);var httpClient=this.getHttpClient();return httpClient.request(requestOptions);}/**
* @description Handles an expired access token. Only available in node apps.
* @param {string} statusCode - The status code of a request
*/},{key:"_handleExpiredAccessToken",value:function _handleExpiredAccessToken(){var _this11=this;return new Promise(function(resolve,reject){if(typeof window!=='undefined'){reject(new Error('This method is not supported in a browser.'));return;}if(!_this11.refreshInProgress){_this11.refreshInProgress=true;_this11.refreshCodeAuthorizationGrant(_this11.clientId,_this11.clientSecret,_this11.authData.refreshToken).then(function(){_this11.refreshInProgress=false;resolve();})["catch"](function(err){// Handle failure response
@@ -12637,7 +12637,7 @@ resolve(data);})["catch"](function(error){var data=error;if(error.response&&erro
that.config.logger.log('error',error.response.status,httpMethod,url,request.headers,error.response.headers,bodyParam,error.response.data);data=that.returnExtended===true?{status:error.response.status,statusText:error.response.statusText,headers:error.response.headers,body:error.response.data,text:error.response.text,error:error}:error.response.data?error.response.data:error.response.text;}reject(data);});}});}}]);}();var AgentAssistantsApi=/*#__PURE__*/function(){/**
* AgentAssistants service.
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentAssistantsApi.
* @alias module:purecloud-platform-client-v2/api/AgentAssistantsApi
@@ -12738,7 +12738,7 @@ if(queueId===undefined||queueId===null){throw'Missing the required parameter "qu
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantQueue';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/queues/{queueId}','PUT',{'assistantId':assistantId,'queueId':queueId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentCopilotApi=/*#__PURE__*/function(){/**
* AgentCopilot service.
* @module purecloud-platform-client-v2/api/AgentCopilotApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentCopilotApi.
* @alias module:purecloud-platform-client-v2/api/AgentCopilotApi
@@ -12760,7 +12760,7 @@ if(assistantId===undefined||assistantId===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAssistantCopilot';}return this.apiClient.callApi('/api/v2/assistants/{assistantId}/copilot','PUT',{'assistantId':assistantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AgentUIApi=/*#__PURE__*/function(){/**
* AgentUI service.
* @module purecloud-platform-client-v2/api/AgentUIApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AgentUIApi.
* @alias module:purecloud-platform-client-v2/api/AgentUIApi
@@ -12794,7 +12794,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AlertingApi=/*#__PURE__*/function(){/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AlertingApi.
* @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -12951,7 +12951,7 @@ if(ruleId===undefined||ruleId===null){throw'Missing the required parameter "rule
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAlertingRule';}return this.apiClient.callApi('/api/v2/alerting/rules/{ruleId}','PUT',{'ruleId':ruleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AnalyticsApi=/*#__PURE__*/function(){/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -13573,7 +13573,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsDataretentionSettings';}return this.apiClient.callApi('/api/v2/analytics/dataretention/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ArchitectApi.
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -14665,7 +14665,7 @@ if(milestoneId===undefined||milestoneId===null){throw'Missing the required param
if(flowOutcomeId===undefined||flowOutcomeId===null){throw'Missing the required parameter "flowOutcomeId" when calling putFlowsOutcome';}return this.apiClient.callApi('/api/v2/flows/outcomes/{flowOutcomeId}','PUT',{'flowOutcomeId':flowOutcomeId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuditApi=/*#__PURE__*/function(){/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AuditApi.
* @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -14715,7 +14715,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAuditsQueryRealtimeRelated';}return this.apiClient.callApi('/api/v2/audits/query/realtime/related','POST',{},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var AuthorizationApi=/*#__PURE__*/function(){/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new AuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -15038,7 +15038,7 @@ if(subjectId===undefined||subjectId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoles';}return this.apiClient.callApi('/api/v2/users/{subjectId}/roles','PUT',{'subjectId':subjectId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var BillingApi=/*#__PURE__*/function(){/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new BillingApi.
* @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -15062,7 +15062,7 @@ if(endDate===undefined||endDate===null){throw'Missing the required parameter "en
if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required parameter "trustorOrgId" when calling getBillingTrusteebillingoverviewTrustorOrgId';}return this.apiClient.callApi('/api/v2/billing/trusteebillingoverview/{trustorOrgId}','GET',{'trustorOrgId':trustorOrgId},{'billingPeriodIndex':opts['billingPeriodIndex']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CarrierServicesApi=/*#__PURE__*/function(){/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new CarrierServicesApi.
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -15082,7 +15082,7 @@ if(phoneNumber===undefined||phoneNumber===null){throw'Missing the required param
*/},{key:"postCarrierservicesIntegrationsEmergencylocationsMe",value:function postCarrierservicesIntegrationsEmergencylocationsMe(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/carrierservices/integrations/emergencylocations/me','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ChatApi=/*#__PURE__*/function(){/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ChatApi.
* @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -15307,7 +15307,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putChatsSettings';}return this.apiClient.callApi('/api/v2/chats/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var CoachingApi=/*#__PURE__*/function(){/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new CoachingApi.
* @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -15460,7 +15460,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCoachingScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/coaching/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ContentManagementApi=/*#__PURE__*/function(){/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ContentManagementApi.
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -15742,7 +15742,7 @@ if(tagId===undefined||tagId===null){throw'Missing the required parameter "tagId"
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putContentmanagementWorkspaceTagvalue';}return this.apiClient.callApi('/api/v2/contentmanagement/workspaces/{workspaceId}/tagvalues/{tagId}','PUT',{'workspaceId':workspaceId,'tagId':tagId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ConversationsApi=/*#__PURE__*/function(){/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ConversationsApi.
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -17470,7 +17470,7 @@ if(conversationId===undefined||conversationId===null){throw'Missing the required
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putConversationsVideoRecordingstate';}return this.apiClient.callApi('/api/v2/conversations/videos/{conversationId}/recordingstate','PUT',{'conversationId':conversationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataExtensionsApi=/*#__PURE__*/function(){/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DataExtensionsApi.
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -17491,7 +17491,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
*/},{key:"getDataextensionsLimits",value:function getDataextensionsLimits(){return this.apiClient.callApi('/api/v2/dataextensions/limits','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DataPrivacyApi=/*#__PURE__*/function(){/**
* DataPrivacy service.
* @module purecloud-platform-client-v2/api/DataPrivacyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DataPrivacyApi.
* @alias module:purecloud-platform-client-v2/api/DataPrivacyApi
@@ -17531,7 +17531,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postDataprivacyMaskingrulesValidate';}return this.apiClient.callApi('/api/v2/dataprivacy/maskingrules/validate','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var DownloadsApi=/*#__PURE__*/function(){/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new DownloadsApi.
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -17550,7 +17550,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(downloadId===undefined||downloadId===null){throw'Missing the required parameter "downloadId" when calling getDownload';}return this.apiClient.callApi('/api/v2/downloads/{downloadId}','GET',{'downloadId':downloadId},{'contentDisposition':opts['contentDisposition'],'issueRedirect':opts['issueRedirect'],'redirectToAuth':opts['redirectToAuth']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmailsApi=/*#__PURE__*/function(){/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EmailsApi.
* @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -17568,7 +17568,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
*/},{key:"patchEmailsSettings",value:function patchEmailsSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/emails/settings','PATCH',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EmployeeEngagementApi=/*#__PURE__*/function(){/**
* EmployeeEngagement service.
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EmployeeEngagementApi.
* @alias module:purecloud-platform-client-v2/api/EmployeeEngagementApi
@@ -17606,7 +17606,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEmployeeengagementRecognitions';}return this.apiClient.callApi('/api/v2/employeeengagement/recognitions','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var EventsApi=/*#__PURE__*/function(){/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new EventsApi.
* @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -17631,7 +17631,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postEventsUsersRoutingstatus';}return this.apiClient.callApi('/api/v2/events/users/routingstatus','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ExternalContactsApi=/*#__PURE__*/function(){/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ExternalContactsApi.
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -18222,7 +18222,7 @@ if(relationshipId===undefined||relationshipId===null){throw'Missing the required
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putExternalcontactsRelationship';}return this.apiClient.callApi('/api/v2/externalcontacts/relationships/{relationshipId}','PUT',{'relationshipId':relationshipId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FaxApi=/*#__PURE__*/function(){/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new FaxApi.
* @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -18271,7 +18271,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putFaxSettings",value:function putFaxSettings(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/fax/settings','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var FlowsApi=/*#__PURE__*/function(){/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new FlowsApi.
* @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -18319,7 +18319,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsFlowsObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/flows/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GamificationApi=/*#__PURE__*/function(){/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GamificationApi.
* @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -18859,7 +18859,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(status===undefined||status===null){throw'Missing the required parameter "status" when calling putGamificationStatus';}return this.apiClient.callApi('/api/v2/gamification/status','PUT',{},{},{},{},status,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeneralDataProtectionRegulationApi=/*#__PURE__*/function(){/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GeneralDataProtectionRegulationApi.
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -18894,7 +18894,7 @@ if(searchValue===undefined||searchValue===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postGdprRequests';}return this.apiClient.callApi('/api/v2/gdpr/requests','POST',{},{'deleteConfirmed':opts['deleteConfirmed']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GeolocationApi=/*#__PURE__*/function(){/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GeolocationApi.
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -18928,7 +18928,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchUserGeolocation';}return this.apiClient.callApi('/api/v2/users/{userId}/geolocations/{clientId}','PATCH',{'userId':userId,'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GreetingsApi=/*#__PURE__*/function(){/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GreetingsApi.
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -19035,7 +19035,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserGreetingsDefaults';}return this.apiClient.callApi('/api/v2/users/{userId}/greetings/defaults','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var GroupsApi=/*#__PURE__*/function(){/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new GroupsApi.
* @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -19168,7 +19168,7 @@ if(groupId===undefined||groupId===null){throw'Missing the required parameter "gr
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putGroupDynamicsettings';}return this.apiClient.callApi('/api/v2/groups/{groupId}/dynamicsettings','PUT',{'groupId':groupId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IdentityProviderApi=/*#__PURE__*/function(){/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new IdentityProviderApi.
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -19324,7 +19324,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIdentityprovidersSalesforce';}return this.apiClient.callApi('/api/v2/identityproviders/salesforce','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var InfrastructureAsCodeApi=/*#__PURE__*/function(){/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new InfrastructureAsCodeApi.
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -19378,7 +19378,7 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postInfrastructureascodeJobs';}return this.apiClient.callApi('/api/v2/infrastructureascode/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var IntegrationsApi=/*#__PURE__*/function(){/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new IntegrationsApi.
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -20013,7 +20013,7 @@ if(ucIntegrationId===undefined||ucIntegrationId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putIntegrationsUnifiedcommunicationThirdpartypresences';}return this.apiClient.callApi('/api/v2/integrations/unifiedcommunications/{ucIntegrationId}/thirdpartypresences','PUT',{'ucIntegrationId':ucIntegrationId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var JourneyApi=/*#__PURE__*/function(){/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new JourneyApi.
* @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -20490,7 +20490,7 @@ if(versionId===undefined||versionId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putJourneyViewVersion';}return this.apiClient.callApi('/api/v2/journey/views/{viewId}/versions/{versionId}','PUT',{'viewId':viewId,'versionId':versionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new KnowledgeApi.
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -21560,7 +21560,7 @@ if(sourceId===undefined||sourceId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putKnowledgeKnowledgebaseSourcesServicenowSourceId';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/sources/servicenow/{sourceId}','PUT',{'knowledgeBaseId':knowledgeBaseId,'sourceId':sourceId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LanguageUnderstandingApi.
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -21820,7 +21820,7 @@ if(domainVersionId===undefined||domainVersionId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLanguageunderstandingDomainVersion';}return this.apiClient.callApi('/api/v2/languageunderstanding/domains/{domainId}/versions/{domainVersionId}','PUT',{'domainId':domainId,'domainVersionId':domainVersionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguagesApi=/*#__PURE__*/function(){/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LanguagesApi.
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -21875,7 +21875,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLanguages';}return this.apiClient.callApi('/api/v2/languages','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LearningApi=/*#__PURE__*/function(){/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LearningApi.
* @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -22146,7 +22146,7 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModuleRule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/rule','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LicenseApi=/*#__PURE__*/function(){/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LicenseApi.
* @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -22200,7 +22200,7 @@ if(featureName===undefined||featureName===null){throw'Missing the required param
*/},{key:"postLicenseUsers",value:function postLicenseUsers(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/license/users','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LocationsApi=/*#__PURE__*/function(){/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LocationsApi.
* @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -22259,7 +22259,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLocationsSearch';}return this.apiClient.callApi('/api/v2/locations/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LogCaptureApi=/*#__PURE__*/function(){/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new LogCaptureApi.
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -22309,7 +22309,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(userId===undefined||userId===null){throw'Missing the required parameter "userId" when calling postDiagnosticsLogcaptureBrowserUser';}return this.apiClient.callApi('/api/v2/diagnostics/logcapture/browser/users/{userId}','POST',{'userId':userId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MessagingApi=/*#__PURE__*/function(){/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new MessagingApi.
* @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -22399,7 +22399,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putMessagingSettingsDefault';}return this.apiClient.callApi('/api/v2/messaging/settings/default','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var MobileDevicesApi=/*#__PURE__*/function(){/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new MobileDevicesApi.
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -22438,7 +22438,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(deviceId===undefined||deviceId===null){throw'Missing the required parameter "deviceId" when calling putMobiledevice';}return this.apiClient.callApi('/api/v2/mobiledevices/{deviceId}','PUT',{'deviceId':deviceId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var NotificationsApi=/*#__PURE__*/function(){/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new NotificationsApi.
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -22495,7 +22495,7 @@ if(channelId===undefined||channelId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putNotificationsChannelSubscriptions';}return this.apiClient.callApi('/api/v2/notifications/channels/{channelId}/subscriptions','PUT',{'channelId':channelId},{'ignoreErrors':opts['ignoreErrors']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OAuthApi=/*#__PURE__*/function(){/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OAuthApi.
* @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -22580,7 +22580,7 @@ if(clientId===undefined||clientId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOauthClient';}return this.apiClient.callApi('/api/v2/oauth/clients/{clientId}','PUT',{'clientId':clientId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ObjectsApi=/*#__PURE__*/function(){/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ObjectsApi.
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -22651,7 +22651,7 @@ if(divisionId===undefined||divisionId===null){throw'Missing the required paramet
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAuthorizationDivision';}return this.apiClient.callApi('/api/v2/authorization/divisions/{divisionId}','PUT',{'divisionId':divisionId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OperationalEventsApi=/*#__PURE__*/function(){/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OperationalEventsApi.
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -22682,7 +22682,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
*/},{key:"postUsageEventsQuery",value:function postUsageEventsQuery(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/usage/events/query','POST',{},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OrganizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -22807,7 +22807,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOrganizationsWhitelist';}return this.apiClient.callApi('/api/v2/organizations/whitelist','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationAuthorizationApi=/*#__PURE__*/function(){/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OrganizationAuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -23141,7 +23141,7 @@ if(trustorOrgId===undefined||trustorOrgId===null){throw'Missing the required par
if(trusteeUserId===undefined||trusteeUserId===null){throw'Missing the required parameter "trusteeUserId" when calling putOrgauthorizationTrustorUser';}return this.apiClient.callApi('/api/v2/orgauthorization/trustors/{trustorOrgId}/users/{trusteeUserId}','PUT',{'trustorOrgId':trustorOrgId,'trusteeUserId':trusteeUserId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OutboundApi=/*#__PURE__*/function(){/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new OutboundApi.
* @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -24248,7 +24248,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putOutboundWrapupcodemappings';}return this.apiClient.callApi('/api/v2/outbound/wrapupcodemappings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var PresenceApi=/*#__PURE__*/function(){/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new PresenceApi.
* @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -24421,7 +24421,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersPresencesBulk';}return this.apiClient.callApi('/api/v2/users/presences/bulk','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ProcessAutomationApi=/*#__PURE__*/function(){/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ProcessAutomationApi.
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -24484,7 +24484,7 @@ if(triggerId===undefined||triggerId===null){throw'Missing the required parameter
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putProcessautomationTrigger';}return this.apiClient.callApi('/api/v2/processautomation/triggers/{triggerId}','PUT',{'triggerId':triggerId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var QualityApi=/*#__PURE__*/function(){/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new QualityApi.
* @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -24963,7 +24963,7 @@ if(customerSurveyUrl===undefined||customerSurveyUrl===null){throw'Missing the re
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putQualitySurveysScorable';}return this.apiClient.callApi('/api/v2/quality/surveys/scorable','PUT',{},{'customerSurveyUrl':customerSurveyUrl},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RecordingApi=/*#__PURE__*/function(){/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new RecordingApi.
* @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -25375,7 +25375,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putRecordingsDeletionprotection",value:function putRecordingsDeletionprotection(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/recordings/deletionprotection','PUT',{},{'protect':opts['protect']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ResponseManagementApi=/*#__PURE__*/function(){/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ResponseManagementApi.
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -25496,7 +25496,7 @@ if(responseAssetId===undefined||responseAssetId===null){throw'Missing the requir
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putResponsemanagementResponseasset';}return this.apiClient.callApi('/api/v2/responsemanagement/responseassets/{responseAssetId}','PUT',{'responseAssetId':responseAssetId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var RoutingApi=/*#__PURE__*/function(){/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new RoutingApi.
* @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -26502,7 +26502,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserRoutingskillsBulk';}return this.apiClient.callApi('/api/v2/users/{userId}/routingskills/bulk','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SCIMApi=/*#__PURE__*/function(){/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SCIMApi.
* @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -26727,7 +26727,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putScimV2User';}return this.apiClient.callApi('/api/v2/scim/v2/users/{userId}','PUT',{'userId':userId},{},{'If-Match':opts['ifMatch']},{},body,['PureCloud OAuth'],['application/scim+json','application/json'],['application/scim+json','application/json']);}}]);}();var ScreenRecordingApi=/*#__PURE__*/function(){/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ScreenRecordingApi.
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -26742,7 +26742,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/return _createClass(ScreenRecordingApi,[{key:"postScreenrecordingToken",value:function postScreenrecordingToken(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/screenrecording/token','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ScriptsApi=/*#__PURE__*/function(){/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new ScriptsApi.
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -26878,7 +26878,7 @@ if(scriptId===undefined||scriptId===null){throw'Missing the required parameter "
*/},{key:"postScriptsPublished",value:function postScriptsPublished(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/scripts/published','POST',{},{'scriptDataVersion':opts['scriptDataVersion']},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SearchApi=/*#__PURE__*/function(){/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SearchApi.
* @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -27050,7 +27050,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postVoicemailSearch';}return this.apiClient.callApi('/api/v2/voicemail/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SettingsApi=/*#__PURE__*/function(){/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SettingsApi.
* @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -27100,7 +27100,7 @@ if(agentId===undefined||agentId===null){throw'Missing the required parameter "ag
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUsersAgentuiAgentsAutoanswerAgentIdSettings';}return this.apiClient.callApi('/api/v2/users/agentui/agents/autoanswer/{agentId}/settings','PUT',{'agentId':agentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SocialMediaApi=/*#__PURE__*/function(){/**
* SocialMedia service.
* @module purecloud-platform-client-v2/api/SocialMediaApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SocialMediaApi.
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
@@ -27365,7 +27365,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
if(twitterIngestionRuleId===undefined||twitterIngestionRuleId===null){throw'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';}return this.apiClient.callApi('/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}','PUT',{'topicId':topicId,'twitterIngestionRuleId':twitterIngestionRuleId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SpeechTextAnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -27664,7 +27664,7 @@ if(topicId===undefined||topicId===null){throw'Missing the required parameter "to
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','PUT',{'topicId':topicId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var StationsApi=/*#__PURE__*/function(){/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new StationsApi.
* @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -27696,7 +27696,7 @@ if(stationId===undefined||stationId===null){throw'Missing the required parameter
*/},{key:"getStations",value:function getStations(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/stations','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortBy':opts['sortBy'],'name':opts['name'],'userSelectable':opts['userSelectable'],'webRtcUserId':opts['webRtcUserId'],'id':opts['id'],'lineAppearanceId':opts['lineAppearanceId']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SuggestApi=/*#__PURE__*/function(){/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new SuggestApi.
* @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -27736,7 +27736,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSearchSuggest';}return this.apiClient.callApi('/api/v2/search/suggest','POST',{},{'profile':opts['profile']},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TaskManagementApi=/*#__PURE__*/function(){/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TaskManagementApi.
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -28142,7 +28142,7 @@ if(schemaId===undefined||schemaId===null){throw'Missing the required parameter "
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTaskmanagementWorkitemsSchema';}return this.apiClient.callApi('/api/v2/taskmanagement/workitems/schemas/{schemaId}','PUT',{'schemaId':schemaId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TeamsApi=/*#__PURE__*/function(){/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TeamsApi.
* @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -28222,7 +28222,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postTeamsSearch';}return this.apiClient.callApi('/api/v2/teams/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyApi=/*#__PURE__*/function(){/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TelephonyApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -28269,7 +28269,7 @@ if(downloadId===undefined||downloadId===null){throw'Missing the required paramet
if(sIPSearchPublicRequest===undefined||sIPSearchPublicRequest===null){throw'Missing the required parameter "sIPSearchPublicRequest" when calling postTelephonySiptracesDownload';}return this.apiClient.callApi('/api/v2/telephony/siptraces/download','POST',{},{},{},{},sIPSearchPublicRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TelephonyProvidersEdgeApi=/*#__PURE__*/function(){/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TelephonyProvidersEdgeApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -29104,7 +29104,7 @@ if(trunkBaseSettingsId===undefined||trunkBaseSettingsId===null){throw'Missing th
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putTelephonyProvidersEdgesTrunkbasesetting';}return this.apiClient.callApi('/api/v2/telephony/providers/edges/trunkbasesettings/{trunkBaseSettingsId}','PUT',{'trunkBaseSettingsId':trunkBaseSettingsId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TextbotsApi=/*#__PURE__*/function(){/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TextbotsApi.
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -29139,7 +29139,7 @@ if(launchRequest===undefined||launchRequest===null){throw'Missing the required p
if(postTextRequest===undefined||postTextRequest===null){throw'Missing the required parameter "postTextRequest" when calling postTextbotsBotsExecute';}return this.apiClient.callApi('/api/v2/textbots/bots/execute','POST',{},{},{},{},postTextRequest,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var TokensApi=/*#__PURE__*/function(){/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new TokensApi.
* @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -29173,7 +29173,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
*/},{key:"putTokensTimeout",value:function putTokensTimeout(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/tokens/timeout','PUT',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UploadsApi=/*#__PURE__*/function(){/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UploadsApi.
* @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -29239,7 +29239,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUploadsWorkforcemanagementHistoricaldataCsv';}return this.apiClient.callApi('/api/v2/uploads/workforcemanagement/historicaldata/csv','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsageApi=/*#__PURE__*/function(){/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UsageApi.
* @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -29293,7 +29293,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postUsageSimplesearch';}return this.apiClient.callApi('/api/v2/usage/simplesearch','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UserRecordingsApi=/*#__PURE__*/function(){/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UserRecordingsApi.
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -29350,7 +29350,7 @@ if(recordingId===undefined||recordingId===null){throw'Missing the required param
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserrecording';}return this.apiClient.callApi('/api/v2/userrecordings/{recordingId}','PUT',{'recordingId':recordingId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UsersApi=/*#__PURE__*/function(){/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UsersApi.
* @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -30047,7 +30047,7 @@ if(verifierId===undefined||verifierId===null){throw'Missing the required paramet
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putUserVerifier';}return this.apiClient.callApi('/api/v2/users/{userId}/verifiers/{verifierId}','PUT',{'userId':userId,'verifierId':verifierId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var UtilitiesApi=/*#__PURE__*/function(){/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new UtilitiesApi.
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -30074,7 +30074,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postCertificateDetails';}return this.apiClient.callApi('/api/v2/certificate/details','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var VoicemailApi=/*#__PURE__*/function(){/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new VoicemailApi.
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -30236,7 +30236,7 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putVoicemailUserpolicy';}return this.apiClient.callApi('/api/v2/voicemail/userpolicies/{userId}','PUT',{'userId':userId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebChatApi=/*#__PURE__*/function(){/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebChatApi.
* @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -30371,7 +30371,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWebchatSettings';}return this.apiClient.callApi('/api/v2/webchat/settings','PUT',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebDeploymentsApi=/*#__PURE__*/function(){/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebDeploymentsApi.
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -30492,7 +30492,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
if(deployment===undefined||deployment===null){throw'Missing the required parameter "deployment" when calling putWebdeploymentsDeployment';}return this.apiClient.callApi('/api/v2/webdeployments/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},deployment,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WebMessagingApi=/*#__PURE__*/function(){/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WebMessagingApi.
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -30508,7 +30508,7 @@ if(deployment===undefined||deployment===null){throw'Missing the required paramet
*/return _createClass(WebMessagingApi,[{key:"getWebmessagingMessages",value:function getWebmessagingMessages(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/webmessaging/messages','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WidgetsApi=/*#__PURE__*/function(){/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WidgetsApi.
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -30543,7 +30543,7 @@ if(deploymentId===undefined||deploymentId===null){throw'Missing the required par
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putWidgetsDeployment';}return this.apiClient.callApi('/api/v2/widgets/deployments/{deploymentId}','PUT',{'deploymentId':deploymentId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var WorkforceManagementApi=/*#__PURE__*/function(){/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*//**
* Constructs a new WorkforceManagementApi.
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -32320,7 +32320,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
*
*
* @module purecloud-platform-client-v2/index
- * @version 211.0.0
+ * @version 211.1.0
*/var platformClient=/*#__PURE__*/_createClass(function platformClient(){_classCallCheck(this,platformClient);/**
* The ApiClient constructor.
* @property {module:purecloud-platform-client-v2/ApiClient}
diff --git a/build/dist/web-cjs/purecloud-platform-client-v2.min.js b/build/dist/web-cjs/purecloud-platform-client-v2.min.js
index d6290510..c9f2911f 100644
--- a/build/dist/web-cjs/purecloud-platform-client-v2.min.js
+++ b/build/dist/web-cjs/purecloud-platform-client-v2.min.js
@@ -1 +1 @@
-require=function(){return function e(i,t,n){function a(r,l){if(!t[r]){if(!i[r]){var s="function"==typeof require&&require;if(!l&&s)return s(r,!0);if(o)return o(r,!0);var u=new Error("Cannot find module '"+r+"'");throw u.code="MODULE_NOT_FOUND",u}var p=t[r]={exports:{}};i[r][0].call(p.exports,function(e){return a(i[r][1][e]||e)},p,p.exports,e,i,t,n)}return t[r].exports}for(var o="function"==typeof require&&require,r=0;r0?r-4:r;for(t=0;t>16&255,s[p++]=i>>8&255,s[p++]=255&i;2===l&&(i=a[e.charCodeAt(t)]<<2|a[e.charCodeAt(t+1)]>>4,s[p++]=255&i);1===l&&(i=a[e.charCodeAt(t)]<<10|a[e.charCodeAt(t+1)]<<4|a[e.charCodeAt(t+2)]>>2,s[p++]=i>>8&255,s[p++]=255&i);return s},t.fromByteArray=function(e){for(var i,t=e.length,a=t%3,o=[],r=0,l=t-a;rl?l:r+16383));1===a?(i=e[t-1],o.push(n[i>>2]+n[i<<4&63]+"==")):2===a&&(i=(e[t-2]<<8)+e[t-1],o.push(n[i>>10]+n[i>>4&63]+n[i<<2&63]+"="));return o.join("")};for(var n=[],a=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=r.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=i),[t,t===i?0:4-t%4]}function p(e,i,t){for(var a,o,r=[],l=i;l>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return r.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],2:[function(e,i,t){},{}],3:[function(e,i,t){(function(i){(function(){"use strict";var i=e("base64-js"),n=e("ieee754");t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return i.__proto__=r.prototype,i}function r(e,i,t){if("number"==typeof e){if("string"==typeof i)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,i,t)}function l(e,i,t){if("string"==typeof e)return function(e,i){"string"==typeof i&&""!==i||(i="utf8");if(!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var t=0|d(e,i),n=o(t),a=n.write(e,i);a!==t&&(n=n.slice(0,a));return n}(e,i);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,i,t){if(i<0||e.byteLength=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,i){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===t)return 0;for(var a=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return D(e).length;default:if(a)return n?-1:x(e).length;i=(""+i).toLowerCase(),a=!0}}function g(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function h(e,i,t,n,a){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),z(t=+t)&&(t=a?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(a)return-1;t=e.length-1}else if(t<0){if(!a)return-1;t=0}if("string"==typeof i&&(i=r.from(i,n)),r.isBuffer(i))return 0===i.length?-1:m(e,i,t,n,a);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):m(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function m(e,i,t,n,a){var o,r=1,l=e.length,s=i.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||i.length<2)return-1;r=2,l/=2,s/=2,t/=2}function u(e,i){return 1===r?e[i]:e.readUInt16BE(i*r)}if(a){var p=-1;for(o=t;ol&&(t=l-s),o=t;o>=0;o--){for(var c=!0,d=0;da&&(n=a):n=a;var o=i.length;n>o/2&&(n=o/2);for(var r=0;r>8,a=t%256,o.push(a),o.push(n);return o}(i,e.length-t),e,t,n)}function b(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function A(e,i,t){t=Math.min(e.length,t);for(var n=[],a=i;a239?4:u>223?3:u>191?2:1;if(a+c<=t)switch(c){case 1:u<128&&(p=u);break;case 2:128==(192&(o=e[a+1]))&&(s=(31&u)<<6|63&o)>127&&(p=s);break;case 3:o=e[a+1],r=e[a+2],128==(192&o)&&128==(192&r)&&(s=(15&u)<<12|(63&o)<<6|63&r)>2047&&(s<55296||s>57343)&&(p=s);break;case 4:o=e[a+1],r=e[a+2],l=e[a+3],128==(192&o)&&128==(192&r)&&128==(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&l)>65535&&s<1114112&&(p=s)}null===p?(p=65533,c=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),a+=c}return function(e){var i=e.length;if(i<=k)return String.fromCharCode.apply(String,e);var t="",n=0;for(;nthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,i,t);case"utf8":case"utf-8":return A(this,i,t);case"ascii":return j(this,i,t);case"latin1":case"binary":return P(this,i,t);case"base64":return b(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),""},r.prototype.compare=function(e,i,t,n,a){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===i&&(i=0),void 0===t&&(t=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),i<0||t>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&i>=t)return 0;if(n>=a)return-1;if(i>=t)return 1;if(i>>>=0,t>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,l=t-i,s=Math.min(o,l),u=this.slice(n,a),p=e.slice(i,t),c=0;c>>=0,isFinite(t)?(t>>>=0,void 0===n&&(n="utf8")):(n=t,t=void 0)}var a=this.length-i;if((void 0===t||t>a)&&(t=a),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return f(this,e,i,t);case"utf8":case"utf-8":return v(this,e,i,t);case"ascii":return w(this,e,i,t);case"latin1":case"binary":return y(this,e,i,t);case"base64":return C(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function j(e,i,t){var n="";t=Math.min(e.length,t);for(var a=i;an)&&(t=n);for(var a="",o=i;ot)throw new RangeError("Trying to access beyond buffer length")}function S(e,i,t,n,a,o){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function q(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function E(e,i,t,a,o){return i=+i,t>>>=0,o||q(e,0,t,4),n.write(e,i,t,a,23,4),t+4}function R(e,i,t,a,o){return i=+i,t>>>=0,o||q(e,0,t,8),n.write(e,i,t,a,52,8),t+8}r.prototype.slice=function(e,i){var t=this.length;e=~~e,i=void 0===i?t:~~i,e<0?(e+=t)<0&&(e=0):e>t&&(e=t),i<0?(i+=t)<0&&(i=0):i>t&&(i=t),i>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e],a=1,o=0;++o>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e+--i],a=1;i>0&&(a*=256);)n+=this[e+--i]*a;return n},r.prototype.readUInt8=function(e,i){return e>>>=0,i||M(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,i){return e>>>=0,i||M(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,i){return e>>>=0,i||M(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,i){return e>>>=0,i||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,i){return e>>>=0,i||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,i,t){e>>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},r.prototype.readIntBE=function(e,i,t){e>>>=0,i>>>=0,t||M(e,i,this.length);for(var n=i,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*i)),o},r.prototype.readInt8=function(e,i){return e>>>=0,i||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,i){e>>>=0,i||M(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},r.prototype.readInt16BE=function(e,i){e>>>=0,i||M(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},r.prototype.readInt32LE=function(e,i){return e>>>=0,i||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,i){return e>>>=0,i||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,i){return e>>>=0,i||M(e,4,this.length),n.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,i){return e>>>=0,i||M(e,4,this.length),n.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,i){return e>>>=0,i||M(e,8,this.length),n.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,i){return e>>>=0,i||M(e,8,this.length),n.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i>>>=0,t>>>=0,n)||S(this,e,i,t,Math.pow(2,8*t)-1,0);var a=1,o=0;for(this[i]=255&e;++o>>=0,t>>>=0,n)||S(this,e,i,t,Math.pow(2,8*t)-1,0);var a=t-1,o=1;for(this[i+a]=255&e;--a>=0&&(o*=256);)this[i+a]=e/o&255;return i+t},r.prototype.writeUInt8=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,1,255,0),this[i]=255&e,i+1},r.prototype.writeUInt16LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,65535,0),this[i]=255&e,this[i+1]=e>>>8,i+2},r.prototype.writeUInt16BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,65535,0),this[i]=e>>>8,this[i+1]=255&e,i+2},r.prototype.writeUInt32LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,4294967295,0),this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e,i+4},r.prototype.writeUInt32BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,4294967295,0),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},r.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i>>>=0,!n){var a=Math.pow(2,8*t-1);S(this,e,i,t,a-1,-a)}var o=0,r=1,l=0;for(this[i]=255&e;++o>0)-l&255;return i+t},r.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i>>>=0,!n){var a=Math.pow(2,8*t-1);S(this,e,i,t,a-1,-a)}var o=t-1,r=1,l=0;for(this[i+o]=255&e;--o>=0&&(r*=256);)e<0&&0===l&&0!==this[i+o+1]&&(l=1),this[i+o]=(e/r>>0)-l&255;return i+t},r.prototype.writeInt8=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,1,127,-128),e<0&&(e=255+e+1),this[i]=255&e,i+1},r.prototype.writeInt16LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,32767,-32768),this[i]=255&e,this[i+1]=e>>>8,i+2},r.prototype.writeInt16BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,32767,-32768),this[i]=e>>>8,this[i+1]=255&e,i+2},r.prototype.writeInt32LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,2147483647,-2147483648),this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24,i+4},r.prototype.writeInt32BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},r.prototype.writeFloatLE=function(e,i,t){return E(this,e,i,!0,t)},r.prototype.writeFloatBE=function(e,i,t){return E(this,e,i,!1,t)},r.prototype.writeDoubleLE=function(e,i,t){return R(this,e,i,!0,t)},r.prototype.writeDoubleBE=function(e,i,t){return R(this,e,i,!1,t)},r.prototype.copy=function(e,i,t,n){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),n||0===n||(n=this.length),i>=e.length&&(i=e.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-i=0;--o)e[o+i]=this[o+t];else Uint8Array.prototype.set.call(e,this.subarray(t,n),i);return a},r.prototype.fill=function(e,i,t,n){if("string"==typeof e){if("string"==typeof i?(n=i,i=0,t=this.length):"string"==typeof t&&(n=t,t=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(i<0||this.length>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=i;o55295&&t<57344){if(!a){if(t>56319){(i-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(i-=3)>-1&&o.push(239,191,189);continue}a=t;continue}if(t<56320){(i-=3)>-1&&o.push(239,191,189),a=t;continue}t=65536+(a-55296<<10|t-56320)}else a&&(i-=3)>-1&&o.push(239,191,189);if(a=null,t<128){if((i-=1)<0)break;o.push(t)}else if(t<2048){if((i-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function D(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function B(e,i){return e instanceof i||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===i.name}function z(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:31}],4:[function(e,i,t){i.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],5:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("./functionApply"),o=e("./functionCall"),r=e("./reflectApply");i.exports=r||n.call(o,a)},{"./functionApply":6,"./functionCall":7,"./reflectApply":9,"function-bind":23}],6:[function(e,i,t){"use strict";i.exports=Function.prototype.apply},{}],7:[function(e,i,t){"use strict";i.exports=Function.prototype.call},{}],8:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("es-errors/type"),o=e("./functionCall"),r=e("./actualApply");i.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return r(n,o,e)}},{"./actualApply":5,"./functionCall":7,"es-errors/type":18,"function-bind":23}],9:[function(e,i,t){"use strict";i.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},{}],10:[function(e,i,t){"use strict";var n=e("get-intrinsic"),a=e("call-bind-apply-helpers"),o=a([n("%String.prototype.indexOf%")]);i.exports=function(e,i){var t=n(e,!!i);return"function"==typeof t&&o(e,".prototype.")>-1?a([t]):t}},{"call-bind-apply-helpers":8,"get-intrinsic":24}],11:[function(e,i,t){"use strict";var n,a=e("call-bind-apply-helpers"),o=e("gopd");try{n=[].__proto__===Array.prototype}catch(e){if(!(e&&"object"==typeof e&&"code"in e&&"ERR_PROTO_ACCESS"===e.code))throw e}var r=!!n&&o&&o(Object.prototype,"__proto__"),l=Object,s=l.getPrototypeOf;i.exports=r&&"function"==typeof r.get?a([r.get]):"function"==typeof s&&function(e){return s(null==e?e:l(e))}},{"call-bind-apply-helpers":8,gopd:26}],12:[function(e,i,t){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}i.exports=n},{}],13:[function(e,i,t){"use strict";i.exports=EvalError},{}],14:[function(e,i,t){"use strict";i.exports=Error},{}],15:[function(e,i,t){"use strict";i.exports=RangeError},{}],16:[function(e,i,t){"use strict";i.exports=ReferenceError},{}],17:[function(e,i,t){"use strict";i.exports=SyntaxError},{}],18:[function(e,i,t){"use strict";i.exports=TypeError},{}],19:[function(e,i,t){"use strict";i.exports=URIError},{}],20:[function(e,i,t){"use strict";i.exports=Object},{}],21:[function(e,i,t){"use strict";var n,a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,i,t){return Function.prototype.apply.call(e,i,t)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}i.exports=l,i.exports.once=function(e,i){return new Promise(function(t,n){function a(t){e.removeListener(i,o),n(t)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),t([].slice.call(arguments))}f(e,i,o,{once:!0}),"error"!==i&&function(e,i,t){"function"==typeof e.on&&f(e,"error",i,t)}(e,a,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function c(e,i,t,n){var a,o,r,l;if(u(t),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",i,t.listener?t.listener:t),o=e._events),r=o[i]),void 0===r)r=o[i]=t,++e._eventsCount;else if("function"==typeof r?r=o[i]=n?[t,r]:[r,t]:n?r.unshift(t):r.push(t),(a=p(e))>0&&r.length>a&&!r.warned){r.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=i,s.count=r.length,l=s,console&&console.warn&&console.warn(l)}return e}function d(e,i,t){var n={fired:!1,wrapFn:void 0,target:e,type:i,listener:t},a=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return a.listener=t,n.wrapFn=a,a}function g(e,i,t){var n=e._events;if(void 0===n)return[];var a=n[i];return void 0===a?[]:"function"==typeof a?t?[a.listener||a]:[a]:t?function(e){for(var i=new Array(e.length),t=0;t0&&(r=i[0]),r instanceof Error)throw r;var l=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw l.context=r,l}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,i);else{var u=s.length,p=m(s,u);for(t=0;t=0;o--)if(t[o]===i||t[o].listener===i){r=t[o].listener,a=o;break}if(a<0)return this;0===a?t.shift():function(e,i){for(;i+1=0;n--)this.removeListener(e,i[n]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,i){return"function"==typeof e.listenerCount?e.listenerCount(i):h.call(e,i)},l.prototype.listenerCount=h,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],22:[function(e,i,t){"use strict";var n=Object.prototype.toString,a=Math.max,o=function(e,i){for(var t=[],n=0;n1&&"boolean"!=typeof i)throw new u('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var i=D(e,0,1),t=D(e,-1);if("%"===i&&"%"!==t)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==i)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,B,function(e,i,t,a){n[n.length]=t?x(a,z,"$1"):i||e}),n}(e),n=t.length>0?t[0]:"",a=L("%"+n+"%",i),o=a.name,r=a.value,l=!1,p=a.alias;p&&(n=p[0],G(t,U([0,1],p)));for(var c=1,d=!0;c=t.length){var f=w(r,g);r=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[g]}else d=R(r,g),r=r[g];d&&!l&&(M[o]=r)}}return r}},{"call-bind-apply-helpers/functionApply":6,"call-bind-apply-helpers/functionCall":7,"dunder-proto/get":11,"es-define-property":12,"es-errors":14,"es-errors/eval":13,"es-errors/range":15,"es-errors/ref":16,"es-errors/syntax":17,"es-errors/type":18,"es-errors/uri":19,"es-object-atoms":20,"function-bind":23,gopd:26,"has-symbols":27,hasown:29,"math-intrinsics/abs":33,"math-intrinsics/floor":34,"math-intrinsics/max":35,"math-intrinsics/min":36,"math-intrinsics/pow":37}],25:[function(e,i,t){"use strict";i.exports=Object.getOwnPropertyDescriptor},{}],26:[function(e,i,t){"use strict";var n=e("./gOPD");if(n)try{n([],"length")}catch(e){n=null}i.exports=n},{"./gOPD":25}],27:[function(e,i,t){"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=e("./shams");i.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},{"./shams":28}],28:[function(e,i,t){"use strict";i.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},i=Symbol("test"),t=Object(i);if("string"==typeof i)return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(var n in e[i]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==i)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,i);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},{}],29:[function(e,i,t){"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=e("function-bind");i.exports=o.call(n,a)},{"function-bind":23}],30:[function(e,i,t){var n=e("http"),a=e("url"),o=i.exports;for(var r in n)n.hasOwnProperty(r)&&(o[r]=n[r]);function l(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,i){return e=l(e),n.request.call(this,e,i)},o.get=function(e,i){return e=l(e),n.get.call(this,e,i)}},{http:53,url:74}],31:[function(e,i,t){t.read=function(e,i,t,n,a){var o,r,l=8*a-n-1,s=(1<>1,p=-7,c=t?a-1:0,d=t?-1:1,g=e[i+c];for(c+=d,o=g&(1<<-p)-1,g>>=-p,p+=l;p>0;o=256*o+e[i+c],c+=d,p-=8);for(r=o&(1<<-p)-1,o>>=-p,p+=n;p>0;r=256*r+e[i+c],c+=d,p-=8);if(0===o)o=1-u;else{if(o===s)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,n),o-=u}return(g?-1:1)*r*Math.pow(2,o-n)},t.write=function(e,i,t,n,a,o){var r,l,s,u=8*o-a-1,p=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,h=n?1:-1,m=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,r=p):(r=Math.floor(Math.log(i)/Math.LN2),i*(s=Math.pow(2,-r))<1&&(r--,s*=2),(i+=r+c>=1?d/s:d*Math.pow(2,1-c))*s>=2&&(r++,s/=2),r+c>=p?(l=0,r=p):r+c>=1?(l=(i*s-1)*Math.pow(2,a),r+=c):(l=i*Math.pow(2,c-1)*Math.pow(2,a),r=0));a>=8;e[t+g]=255&l,g+=h,l/=256,a-=8);for(r=r<0;e[t+g]=255&r,g+=h,r/=256,u-=8);e[t+g-h]|=128*m}},{}],32:[function(e,i,t){"function"==typeof Object.create?i.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(e,i){if(i){e.super_=i;var t=function(){};t.prototype=i.prototype,e.prototype=new t,e.prototype.constructor=e}}},{}],33:[function(e,i,t){"use strict";i.exports=Math.abs},{}],34:[function(e,i,t){"use strict";i.exports=Math.floor},{}],35:[function(e,i,t){"use strict";i.exports=Math.max},{}],36:[function(e,i,t){"use strict";i.exports=Math.min},{}],37:[function(e,i,t){"use strict";i.exports=Math.pow},{}],38:[function(e,i,t){(function(t){(function(){var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&a&&"function"==typeof a.get?a.get:null,r=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&s&&"function"==typeof s.get?s.get:null,p=l&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,g="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,f=Function.prototype.toString,v=String.prototype.match,w=String.prototype.slice,y=String.prototype.replace,C=String.prototype.toUpperCase,I=String.prototype.toLowerCase,b=RegExp.prototype.test,A=Array.prototype.concat,k=Array.prototype.join,j=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,q="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===S||"symbol")?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,i){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,i))return i;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var a=String(n),o=w.call(i,a.length+1);return y.call(a,t,"$&_")+"."+y.call(y.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(i,t,"$&_")}var G=e("./util.inspect"),x=G.custom,D=K(x)?x:null,W={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,i,t){var n=t.quoteStyle||i,a=W[n];return a+e+a}function L(e){return y.call(String(e),/"/g,""")}function _(e){return!("[object Array]"!==V(e)||q&&"object"==typeof e&&q in e)}function N(e){return!("[object RegExp]"!==V(e)||q&&"object"==typeof e&&q in e)}function K(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}i.exports=function e(i,n,a,l){var s=n||{};if(J(s,"quoteStyle")&&!J(W,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var C=s.numericSeparator;if(void 0===i)return"undefined";if(null===i)return"null";if("boolean"==typeof i)return i?"true":"false";if("string"==typeof i)return function e(i,t){if(i.length>t.maxStringLength){var n=i.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return e(w.call(i,0,t.maxStringLength),t)+a}var o=B[t.quoteStyle||"single"];o.lastIndex=0;var r=y.call(y.call(i,o,"\\$1"),/[\x00-\x1f]/g,H);return z(r,"single",t)}(i,s);if("number"==typeof i){if(0===i)return 1/0/i>0?"0":"-0";var b=String(i);return C?U(i,b):b}if("bigint"==typeof i){var P=String(i)+"n";return C?U(i,P):P}var T=void 0===s.depth?5:s.depth;if(void 0===a&&(a=0),a>=T&&T>0&&"object"==typeof i)return _(i)?"[Array]":"[Object]";var x=function(e,i){var t;if("\t"===e.indent)t="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;t=k.call(Array(e.indent+1)," ")}return{base:t,prev:k.call(Array(i+1),t)}}(s,a);if(void 0===l)l=[];else if(Q(l,i)>=0)return"[Circular]";function F(i,t,n){if(t&&(l=j.call(l)).push(t),n){var o={depth:s.depth};return J(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(i,o,a+1,l)}return e(i,s,a+1,l)}if("function"==typeof i&&!N(i)){var ie=function(e){if(e.name)return e.name;var i=v.call(f.call(e),/^function\s*([\w$]+)/);if(i)return i[1];return null}(i),te=ee(i,F);return"[Function"+(ie?": "+ie:" (anonymous)")+"]"+(te.length>0?" { "+k.call(te,", ")+" }":"")}if(K(i)){var ne=S?y.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(i);return"object"!=typeof i||S?ne:Y(ne)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(i)){for(var ae="<"+I.call(String(i.nodeName)),oe=i.attributes||[],re=0;re",i.childNodes&&i.childNodes.length&&(ae+="..."),ae+=""+I.call(String(i.nodeName))+">"}if(_(i)){if(0===i.length)return"[]";var le=ee(i,F);return x&&!function(e){for(var i=0;i=0)return!1;return!0}(le)?"["+Z(le,x)+"]":"[ "+k.call(le,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||q&&"object"==typeof e&&q in e)}(i)){var se=ee(i,F);return"cause"in Error.prototype||!("cause"in i)||E.call(i,"cause")?0===se.length?"["+String(i)+"]":"{ ["+String(i)+"] "+k.call(se,", ")+" }":"{ ["+String(i)+"] "+k.call(A.call("[cause]: "+F(i.cause),se),", ")+" }"}if("object"==typeof i&&m){if(D&&"function"==typeof i[D]&&G)return G(i,{depth:T-a});if("symbol"!==m&&"function"==typeof i.inspect)return i.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(i)){var ue=[];return r&&r.call(i,function(e,t){ue.push(F(t,i,!0)+" => "+F(e,i))}),X("Map",o.call(i),ue,x)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(i)){var pe=[];return p&&p.call(i,function(e){pe.push(F(e,i))}),X("Set",u.call(i),pe,x)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(i))return $("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(i))return $("WeakSet");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{return g.call(e),!0}catch(e){}return!1}(i))return $("WeakRef");if(function(e){return!("[object Number]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(F(Number(i)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(i))return Y(F(O.call(i)));if(function(e){return!("[object Boolean]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(h.call(i));if(function(e){return!("[object String]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(F(String(i)));if("undefined"!=typeof window&&i===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&i===globalThis||void 0!==t&&i===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||q&&"object"==typeof e&&q in e)}(i)&&!N(i)){var ce=ee(i,F),de=R?R(i)===Object.prototype:i instanceof Object||i.constructor===Object,ge=i instanceof Object?"":"null prototype",he=!de&&q&&Object(i)===i&&q in i?w.call(V(i),8,-1):ge?"Object":"",me=(de||"function"!=typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"")+(he||ge?"["+k.call(A.call([],he||[],ge||[]),": ")+"] ":"");return 0===ce.length?me+"{}":x?me+"{"+Z(ce,x)+"}":me+"{ "+k.call(ce,", ")+" }"}return String(i)};var F=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,i){return F.call(e,i)}function V(e){return m.call(e)}function Q(e,i){if(e.indexOf)return e.indexOf(i);for(var t=0,n=e.length;t2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",a=0):a=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=l,r=0;continue}}else if(2===n.length||1===n.length){n="",a=0,o=l,r=0;continue}i&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),a=l-o-1;o=l,r=0}else 46===t&&-1!==r?++r:r=-1}return n}var a={resolve:function(){for(var i,a="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){var l;r>=0?l=arguments[r]:(void 0===i&&(i=e.cwd()),l=i),t(l),0!==l.length&&(a=l+"/"+a,o=47===l.charCodeAt(0))}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&a&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,i=0;i0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,i){if(t(e),t(i),e===i)return"";if((e=a.resolve(e))===(i=a.resolve(i)))return"";for(var n=1;nu){if(47===i.charCodeAt(l+c))return i.slice(l+c+1);if(0===c)return i.slice(l+c)}else r>u&&(47===e.charCodeAt(n+c)?p=c:0===c&&(p=0));break}var d=e.charCodeAt(n+c);if(d!==i.charCodeAt(l+c))break;47===d&&(p=c)}var g="";for(c=n+p+1;c<=o;++c)c!==o&&47!==e.charCodeAt(c)||(0===g.length?g+="..":g+="/..");return g.length>0?g+i.slice(l+p):(l+=p,47===i.charCodeAt(l)&&++l,i.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var i=e.charCodeAt(0),n=47===i,a=-1,o=!0,r=e.length-1;r>=1;--r)if(47===(i=e.charCodeAt(r))){if(!o){a=r;break}}else o=!1;return-1===a?n?"/":".":n&&1===a?"//":e.slice(0,a)},basename:function(e,i){if(void 0!==i&&"string"!=typeof i)throw new TypeError('"ext" argument must be a string');t(e);var n,a=0,o=-1,r=!0;if(void 0!==i&&i.length>0&&i.length<=e.length){if(i.length===e.length&&i===e)return"";var l=i.length-1,s=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!r){a=n+1;break}}else-1===s&&(r=!1,s=n+1),l>=0&&(u===i.charCodeAt(l)?-1==--l&&(o=n):(l=-1,o=s))}return a===o?o=s:-1===o&&(o=e.length),e.slice(a,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!r){a=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(a,o)},extname:function(e){t(e);for(var i=-1,n=0,a=-1,o=!0,r=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(47!==s)-1===a&&(o=!1,a=l+1),46===s?-1===i?i=l:1!==r&&(r=1):-1!==i&&(r=-1);else if(!o){n=l+1;break}}return-1===i||-1===a||0===r||1===r&&i===a-1&&i===n+1?"":e.slice(i,a)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,i){var t=i.dir||i.root,n=i.base||(i.name||"")+(i.ext||"");return t?t===i.root?t+n:t+e+n:n}("/",e)},parse:function(e){t(e);var i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var n,a=e.charCodeAt(0),o=47===a;o?(i.root="/",n=1):n=0;for(var r=-1,l=0,s=-1,u=!0,p=e.length-1,c=0;p>=n;--p)if(47!==(a=e.charCodeAt(p)))-1===s&&(u=!1,s=p+1),46===a?-1===r?r=p:1!==c&&(c=1):-1!==r&&(c=-1);else if(!u){l=p+1;break}return-1===r||-1===s||0===c||1===c&&r===s-1&&r===l+1?-1!==s&&(i.base=i.name=0===l&&o?e.slice(1,s):e.slice(l,s)):(0===l&&o?(i.name=e.slice(1,r),i.base=e.slice(1,s)):(i.name=e.slice(l,r),i.base=e.slice(l,s)),i.ext=e.slice(r,s)),l>0?i.dir=e.slice(0,l-1):o&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}).call(this)}).call(this,e("_process"))},{_process:41}],41:[function(e,i,t){var n,a,o=i.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(i){try{return n.call(null,e,0)}catch(i){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:l}catch(e){a=l}}();var u,p=[],c=!1,d=-1;function g(){c&&u&&(c=!1,u.length?p=u.concat(p):d=-1,p.length&&h())}function h(){if(!c){var e=s(g);c=!0;for(var i=p.length;i;){for(u=p,p=[];++d1)for(var t=1;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=p-c,A=Math.floor,k=String.fromCharCode;function j(e){throw new RangeError(I[e])}function P(e,i){for(var t=e.length,n=[];t--;)n[t]=i(e[t]);return n}function O(e,i){var t=e.split("@"),n="";return t.length>1&&(n=t[0]+"@",e=t[1]),n+P((e=e.replace(C,".")).split("."),i).join(".")}function T(e){for(var i,t,n=[],a=0,o=e.length;a=55296&&i<=56319&&a65535&&(i+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=k(e)}).join("")}function S(e,i){return e+22+75*(e<26)-((0!=i)<<5)}function q(e,i,t){var n=0;for(e=t?A(e/h):e>>1,e+=A(e/i);e>b*d>>1;n+=p)e=A(e/b);return A(n+(b+1)*e/(e+g))}function E(e){var i,t,n,a,o,r,l,s,g,h,w,y=[],C=e.length,I=0,b=f,k=m;for((t=e.lastIndexOf(v))<0&&(t=0),n=0;n=128&&j("not-basic"),y.push(e.charCodeAt(n));for(a=t>0?t+1:0;a=C&&j("invalid-input"),((s=(w=e.charCodeAt(a++))-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p)>=p||s>A((u-I)/r))&&j("overflow"),I+=s*r,!(s<(g=l<=k?c:l>=k+d?d:l-k));l+=p)r>A(u/(h=p-g))&&j("overflow"),r*=h;k=q(I-o,i=y.length+1,0==o),A(I/i)>u-b&&j("overflow"),b+=A(I/i),I%=i,y.splice(I++,0,b)}return M(y)}function R(e){var i,t,n,a,o,r,l,s,g,h,w,y,C,I,b,P=[];for(y=(e=T(e)).length,i=f,t=0,o=m,r=0;r=i&&wA((u-t)/(C=n+1))&&j("overflow"),t+=(l-i)*C,i=l,r=0;ru&&j("overflow"),w==i){for(s=t,g=p;!(s<(h=g<=o?c:g>=o+d?d:g-o));g+=p)b=s-h,I=p-h,P.push(k(S(h+b%I,0))),s=A(b/I);P.push(k(S(s,0))),o=q(t,C,n==a),t=0,++n}++t,++i}return P.join("")}if(l={version:"1.4.1",ucs2:{decode:T,encode:M},decode:E,encode:R,toASCII:function(e){return O(e,function(e){return y.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return O(e,function(e){return w.test(e)?E(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return l});else if(a&&o)if(i.exports==a)o.exports=l;else for(s in l)l.hasOwnProperty(s)&&(a[s]=l[s]);else n.punycode=l}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],43:[function(e,i,t){"use strict";var n=String.prototype.replace,a=/%20/g,o="RFC1738",r="RFC3986";i.exports={default:r,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:r}},{}],44:[function(e,i,t){"use strict";var n=e("./stringify"),a=e("./parse"),o=e("./formats");i.exports={formats:o,parse:a,stringify:n}},{"./formats":43,"./parse":45,"./stringify":46}],45:[function(e,i,t){"use strict";var n=e("./utils"),a=Object.prototype.hasOwnProperty,o=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},l=function(e){return e.replace(/(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},s=function(e,i){return e&&"string"==typeof e&&i.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,i,t,n){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,l=t.depth>0&&/(\[[^[\]]*])/.exec(o),u=l?o.slice(0,l.index):o,p=[];if(u){if(!t.plainObjects&&a.call(Object.prototype,u)&&!t.allowPrototypes)return;p.push(u)}for(var c=0;t.depth>0&&null!==(l=r.exec(o))&&c=0;--o){var r,l=e[o];if("[]"===l&&t.parseArrays)r=t.allowEmptyArrays&&(""===a||t.strictNullHandling&&null===a)?[]:[].concat(a);else{r=t.plainObjects?{__proto__:null}:{};var u="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,p=t.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(p,10);t.parseArrays||""!==p?!isNaN(c)&&l!==p&&String(c)===p&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(r=[])[c]=a:"__proto__"!==p&&(r[p]=a):r={0:a}}a=r}return a}(p,i,t,n)}};i.exports=function(e,i){var t=function(e){if(!e)return r;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=void 0===e.charset?r.charset:e.charset,t=void 0===e.duplicates?r.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||r.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:r.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:i,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:r.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(i);if(""===e||null===e||void 0===e)return t.plainObjects?{__proto__:null}:{};for(var p="string"==typeof e?function(e,i){var t={__proto__:null},u=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p,c=i.parameterLimit===1/0?void 0:i.parameterLimit,d=u.split(i.delimiter,c),g=-1,h=i.charset;if(i.charsetSentinel)for(p=0;p-1&&(f=o(f)?[f]:f);var C=a.call(t,m);C&&"combine"===i.duplicates?t[m]=n.combine(t[m],f):C&&"last"!==i.duplicates||(t[m]=f)}return t}(e,t):e,c=t.plainObjects?{__proto__:null}:{},d=Object.keys(p),g=0;g0?P.join(",")||null:void 0}];else if(s(f))q=f;else{var R=Object.keys(P);q=v?R.sort(v):R}var U=d?String(t).replace(/\./g,"%2E"):String(t),G=r&&s(P)&&1===P.length?U+"[]":U;if(l&&s(P)&&0===P.length)return G+"[]";for(var x=0;x0?I+C:""}},{"./formats":43,"./utils":47,"side-channel":52}],47:[function(e,i,t){"use strict";var n=e("./formats"),a=Object.prototype.hasOwnProperty,o=Array.isArray,r=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}(),l=function(e,i){for(var t=i&&i.plainObjects?{__proto__:null}:{},n=0;n1;){var i=e.pop(),t=i.obj[i.prop];if(o(t)){for(var n=[],a=0;a=1024?l.slice(u,u+1024):l,c=[],d=0;d=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||o===n.RFC1738&&(40===g||41===g)?c[c.length]=p.charAt(d):g<128?c[c.length]=r[g]:g<2048?c[c.length]=r[192|g>>6]+r[128|63&g]:g<55296||g>=57344?c[c.length]=r[224|g>>12]+r[128|g>>6&63]+r[128|63&g]:(d+=1,g=65536+((1023&g)<<10|1023&p.charCodeAt(d)),c[c.length]=r[240|g>>18]+r[128|g>>12&63]+r[128|g>>6&63]+r[128|63&g])}s+=c.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,i){if(o(e)){for(var t=[],n=0;ni._pos){var r=o.substr(i._pos);if("x-user-defined"===i._charset){for(var l=a.alloc(r.length),u=0;ui._pos&&(i.push(a.from(new Uint8Array(p.result.slice(i._pos)))),i._pos=p.result.byteLength)},p.onload=function(){e(!0),i.push(null)},p.readAsArrayBuffer(o)}i._xhr.readyState===s.DONE&&"ms-stream"!==i._mode&&(e(!0),i.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":54,_process:41,buffer:3,inherits:32,"readable-stream":71}],57:[function(e,i,t){"use strict";var n={};function a(e,i,t){t||(t=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof i?i:i(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(t);a.prototype.name=t.name,a.prototype.code=e,n[e]=a}function o(e,i){if(Array.isArray(e)){var t=e.length;return e=e.map(function(e){return String(e)}),t>2?"one of ".concat(i," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:2===t?"one of ".concat(i," ").concat(e[0]," or ").concat(e[1]):"of ".concat(i," ").concat(e[0])}return"of ".concat(i," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",function(e,i){return'The value "'+i+'" is invalid for option "'+e+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(e,i,t){var n,a,r,l;if("string"==typeof i&&(a="not ",i.substr(!r||r<0?0:+r,a.length)===a)?(n="must not be",i=i.replace(/^not /,"")):n="must be",function(e,i,t){return(void 0===t||t>e.length)&&(t=e.length),e.substring(t-i.length,t)===i}(e," argument"))l="The ".concat(e," ").concat(n," ").concat(o(i,"type"));else{var s=function(e,i,t){return"number"!=typeof t&&(t=0),!(t+i.length>e.length)&&-1!==e.indexOf(i,t)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(o(i,"type"))}return l+=". Received type ".concat(typeof t)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=n},{}],58:[function(e,i,t){(function(t){(function(){"use strict";var n=Object.keys||function(e){var i=[];for(var t in e)i.push(t);return i};i.exports=u;var a=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(u,a);for(var r=n(o.prototype),l=0;l0)if("string"==typeof i||r.objectMode||Object.getPrototypeOf(i)===l.prototype||(i=function(e){return l.from(e)}(i)),n)r.endEmitted?b(e,new I):O(e,r,i,!0);else if(r.ended)b(e,new y);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!t?(i=r.decoder.write(i),r.objectMode||0!==i.length?O(e,r,i,!1):E(e,r)):O(e,r,i,!1)}else n||(r.reading=!1,E(e,r));return!r.ended&&(r.lengthi.highWaterMark&&(i.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=i.length?e:i.ended?i.length:(i.needReadable=!0,0))}function S(e){var i=e._readableState;u("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(u("emitReadable",i.flowing),i.emittedReadable=!0,t.nextTick(q,e))}function q(e){var i=e._readableState;u("emitReadable_",i.destroyed,i.length,i.ended),i.destroyed||!i.length&&!i.ended||(e.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,D(e)}function E(e,i){i.readingMore||(i.readingMore=!0,t.nextTick(R,e,i))}function R(e,i){for(;!i.reading&&!i.ended&&(i.length0,i.resumeScheduled&&!i.paused?i.flowing=!0:e.listenerCount("data")>0&&e.resume()}function G(e){u("readable nexttick read 0"),e.read(0)}function x(e,i){u("resume",i.reading),i.reading||e.read(0),i.resumeScheduled=!1,e.emit("resume"),D(e),i.flowing&&!i.reading&&e.read(0)}function D(e){var i=e._readableState;for(u("flow",i.flowing);i.flowing&&null!==e.read(););}function W(e,i){return 0===i.length?null:(i.objectMode?t=i.buffer.shift():!e||e>=i.length?(t=i.decoder?i.buffer.join(""):1===i.buffer.length?i.buffer.first():i.buffer.concat(i.length),i.buffer.clear()):t=i.buffer.consume(e,i.decoder),t);var t}function B(e){var i=e._readableState;u("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,t.nextTick(z,i,e))}function z(e,i){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,i.readable=!1,i.emit("end"),e.autoDestroy)){var t=i._writableState;(!t||t.autoDestroy&&t.finished)&&i.destroy()}}function L(e,i){for(var t=0,n=e.length;t=i.highWaterMark:i.length>0)||i.ended))return u("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?B(this):S(this),null;if(0===(e=M(e,i))&&i.ended)return 0===i.length&&B(this),null;var n,a=i.needReadable;return u("need readable",a),(0===i.length||i.length-e0?W(e,i):null)?(i.needReadable=i.length<=i.highWaterMark,e=0):(i.length-=e,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),t!==e&&i.ended&&B(this)),null!==n&&this.emit("data",n),n},j.prototype._read=function(e){b(this,new C("_read()"))},j.prototype.pipe=function(e,i){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,u("pipe count=%d opts=%j",a.pipesCount,i);var r=(!i||!1!==i.end)&&e!==t.stdout&&e!==t.stderr?s:f;function l(i,t){u("onunpipe"),i===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,u("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",f),n.removeListener("data",d),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function s(){u("onend"),e.end()}a.endEmitted?t.nextTick(r):n.once("end",r),e.on("unpipe",l);var p=function(e){return function(){var i=e._readableState;u("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,0===i.awaitDrain&&o(e,"data")&&(i.flowing=!0,D(e))}}(n);e.on("drain",p);var c=!1;function d(i){u("ondata");var t=e.write(i);u("dest.write",t),!1===t&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==L(a.pipes,e))&&!c&&(u("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function g(i){u("onerror",i),f(),e.removeListener("error",g),0===o(e,"error")&&b(e,i)}function h(){e.removeListener("finish",m),f()}function m(){u("onfinish"),e.removeListener("close",h),f()}function f(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,i,t){if("function"==typeof e.prependListener)return e.prependListener(i,t);e._events&&e._events[i]?Array.isArray(e._events[i])?e._events[i].unshift(t):e._events[i]=[t,e._events[i]]:e.on(i,t)}(e,"error",g),e.once("close",h),e.once("finish",m),e.emit("pipe",n),a.flowing||(u("pipe resume"),n.resume()),e},j.prototype.unpipe=function(e){var i=this._readableState,t={hasUnpiped:!1};if(0===i.pipesCount)return this;if(1===i.pipesCount)return e&&e!==i.pipes?this:(e||(e=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=i.pipes,a=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var o=0;o0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,u("on readable",a.length,a.reading),a.length?S(this):a.reading||t.nextTick(G,this))),n},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,i){var n=r.prototype.removeListener.call(this,e,i);return"readable"===e&&t.nextTick(U,this),n},j.prototype.removeAllListeners=function(e){var i=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(U,this),i},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,i){i.resumeScheduled||(i.resumeScheduled=!0,t.nextTick(x,e,i))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var i=this,t=this._readableState,n=!1;for(var a in e.on("end",function(){if(u("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&i.push(e)}i.push(null)}),e.on("data",function(a){(u("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!t.objectMode||null!==a&&void 0!==a)&&((t.objectMode||a&&a.length)&&(i.push(a)||(n=!0,e.pause())))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(i){return function(){return e[i].apply(e,arguments)}}(a));for(var o=0;o-1))throw new I(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,i,t){t(new m("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,i,n){var a=this._writableState;return"function"==typeof e?(n=e,e=null,i=null):"function"==typeof i&&(n=i,i=null),null!==e&&void 0!==e&&this.write(e,i),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,i,n){i.ending=!0,q(e,i),n&&(i.finished?t.nextTick(n):e.once("finish",n));i.ended=!0,e.writable=!1}(this,a,n),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=c.destroy,j.prototype._undestroy=c.undestroy,j.prototype._destroy=function(e,i){i(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":57,"./_stream_duplex":58,"./internal/streams/destroy":65,"./internal/streams/state":69,"./internal/streams/stream":70,_process:41,buffer:3,inherits:32,"util-deprecate":75}],63:[function(e,i,t){(function(t){(function(){"use strict";var n;function a(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,i||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var o=e("./end-of-stream"),r=Symbol("lastResolve"),l=Symbol("lastReject"),s=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function g(e,i){return{value:e,done:i}}function h(e){var i=e[r];if(null!==i){var t=e[d].read();null!==t&&(e[p]=null,e[r]=null,e[l]=null,i(g(t,!1)))}}var m=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var e=this,i=this[s];if(null!==i)return Promise.reject(i);if(this[u])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise(function(i,n){t.nextTick(function(){e[s]?n(e[s]):i(g(void 0,!0))})});var n,a=this[p];if(a)n=new Promise(function(e,i){return function(t,n){e.then(function(){i[u]?t(g(void 0,!0)):i[c](t,n)},n)}}(a,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(g(o,!1));n=new Promise(this[c])}return this[p]=n,n}},Symbol.asyncIterator,function(){return this}),a(n,"return",function(){var e=this;return new Promise(function(i,t){e[d].destroy(null,function(e){e?t(e):i(g(void 0,!0))})})}),n),m);i.exports=function(e){var i,n=Object.create(f,(a(i={},d,{value:e,writable:!0}),a(i,r,{value:null,writable:!0}),a(i,l,{value:null,writable:!0}),a(i,s,{value:null,writable:!0}),a(i,u,{value:e._readableState.endEmitted,writable:!0}),a(i,c,{value:function(e,i){var t=n[d].read();t?(n[p]=null,n[r]=null,n[l]=null,e(g(t,!1))):(n[r]=e,n[l]=i)},writable:!0}),i));return n[p]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var i=n[l];return null!==i&&(n[p]=null,n[r]=null,n[l]=null,i(e)),void(n[s]=e)}var t=n[r];null!==t&&(n[p]=null,n[r]=null,n[l]=null,t(g(void 0,!0))),n[u]=!0}),e.on("readable",function(e){t.nextTick(h,e)}.bind(null,n)),n}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":66,_process:41}],64:[function(e,i,t){"use strict";function n(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function a(e){for(var i=1;i0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(e){var i={data:e,next:this.head};0===this.length&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var i=this.head,t=""+i.data;i=i.next;)t+=e+i.data;return t}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var i,t,n,a=s.allocUnsafe(e>>>0),o=this.head,r=0;o;)i=o.data,t=a,n=r,s.prototype.copy.call(i,t,n),r+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,i){var t;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0===(e-=o)){o===a.length?(++t,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++t}return this.length-=t,n}},{key:"_getBuffer",value:function(e){var i=s.allocUnsafe(e),t=this.head,n=1;for(t.data.copy(i),e-=t.data.length;t=t.next;){var a=t.data,o=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,o),0===(e-=o)){o===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++n}return this.length-=n,i}},{key:p,value:function(e,i){return u(this,a(a({},i),{},{depth:0,customInspect:!1}))}}])&&r(i.prototype,t),n&&r(i,n),Object.defineProperty(i,"prototype",{writable:!1}),e}()},{buffer:3,util:2}],65:[function(e,i,t){(function(e){(function(){"use strict";function t(e,i){a(e,i),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,i){e.emit("error",i)}i.exports={destroy:function(i,o){var r=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(o?o(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,i)):e.nextTick(a,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(i){!o&&i?r._writableState?r._writableState.errorEmitted?e.nextTick(n,r):(r._writableState.errorEmitted=!0,e.nextTick(t,r,i)):e.nextTick(t,r,i):o?(e.nextTick(n,r),o(i)):e.nextTick(n,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,i){var t=e._readableState,n=e._writableState;t&&t.autoDestroy||n&&n.autoDestroy?e.destroy(i):e.emit("error",i)}}}).call(this)}).call(this,e("_process"))},{_process:41}],66:[function(e,i,t){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}i.exports=function e(i,t,o){if("function"==typeof t)return e(i,null,t);t||(t={}),o=function(e){var i=!1;return function(){if(!i){i=!0;for(var t=arguments.length,n=new Array(t),a=0;a0,function(e){p||(p=e),e&&d.forEach(s),o||(d.forEach(s),c(p))})});return t.reduce(u)}},{"../../../errors":57,"./end-of-stream":66}],69:[function(e,i,t){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;i.exports={getHighWaterMark:function(e,i,t,a){var o=function(e,i,t){return null!=e.highWaterMark?e.highWaterMark:i?e[t]:null}(i,a,t);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?t:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":57}],70:[function(e,i,t){i.exports=e("events").EventEmitter},{events:21}],71:[function(e,i,t){(t=i.exports=e("./lib/_stream_readable.js")).Stream=t,t.Readable=t,t.Writable=e("./lib/_stream_writable.js"),t.Duplex=e("./lib/_stream_duplex.js"),t.Transform=e("./lib/_stream_transform.js"),t.PassThrough=e("./lib/_stream_passthrough.js"),t.finished=e("./lib/internal/streams/end-of-stream.js"),t.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":58,"./lib/_stream_passthrough.js":59,"./lib/_stream_readable.js":60,"./lib/_stream_transform.js":61,"./lib/_stream_writable.js":62,"./lib/internal/streams/end-of-stream.js":66,"./lib/internal/streams/pipeline.js":68}],72:[function(e,i,t){"use strict";var n=e("safe-buffer").Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var i;switch(this.encoding=function(e){var i=function(e){if(!e)return"utf8";for(var i;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(i)return;e=(""+e).toLowerCase(),i=!0}}(e);if("string"!=typeof i&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return i||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,i=4;break;case"utf8":this.fillLast=l,i=4;break;case"base64":this.text=p,this.end=c,i=3;break;default:return this.write=d,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(i)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var i=this.lastTotal-this.lastNeed,t=function(e,i,t){if(128!=(192&i[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&i.length>1){if(128!=(192&i[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&i.length>2&&128!=(192&i[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,i,0,e.length),void(this.lastNeed-=e.length))}function s(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function u(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,t)}return i}function p(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function c(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function d(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var i,t;if(this.lastNeed){if(void 0===(i=this.fillLast(e)))return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",i,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":48}],73:[function(e,i,t){(function(i,n){(function(){var a=e("process/browser.js").nextTick,o=Function.prototype.apply,r=Array.prototype.slice,l={},s=0;function u(e,i){this._id=e,this._clearFn=i}t.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,i){clearTimeout(e._idleTimeoutId),e._idleTimeout=i},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var i=e._idleTimeout;i>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},i))},t.setImmediate="function"==typeof i?i:function(e){var i=s++,n=!(arguments.length<2)&&r.call(arguments,1);return l[i]=!0,a(function(){l[i]&&(n?e.apply(null,n):e.call(null),t.clearImmediate(i))}),i},t.clearImmediate="function"==typeof n?n:function(e){delete l[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":41,timers:73}],74:[function(e,i,t){"use strict";var n=e("punycode/");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),p=["%","/","?",";","#"].concat(u),c=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("qs");function w(e,i,t){if(e&&"object"==typeof e&&e instanceof a)return e;var n=new a;return n.parse(e,i,t),n}a.prototype.parse=function(e,i,t){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),r=-1!==a&&a127?E+="x":E+=q[R];if(!E.match(d)){var G=M.slice(0,P),x=M.slice(P+1),D=q.match(g);D&&(G.push(D[1]),x.unshift(D[2])),x.length&&(w="/"+x.join(".")+w),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var W=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+W,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!h[I])for(P=0,S=u.length;P0)&&t.host.split("@"))&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname);return t.search=e.search,t.query=e.query,null===t.pathname&&null===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!b.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var k=b.slice(-1)[0],j=(t.host||e.host||b.length>1)&&("."===k||".."===k)||""===k,P=0,O=b.length;O>=0;O--)"."===(k=b[O])?b.splice(O,1):".."===k?(b.splice(O,1),P++):P&&(b.splice(O,1),P--);if(!C&&!I)for(;P--;P)b.unshift("..");!C||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),j&&"/"!==b.join("/").substr(-1)&&b.push("");var T,M=""===b[0]||b[0]&&"/"===b[0].charAt(0);A&&(t.hostname=M?"":b.length?b.shift():"",t.host=t.hostname,(T=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname));return(C=C||t.host&&b.length)&&!M&&b.unshift(""),b.length>0?t.pathname=b.join("/"):(t.pathname=null,t.path=null),null===t.pathname&&null===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},a.prototype.parseHost=function(){var e=this.host,i=r.exec(e);i&&(":"!==(i=i[0])&&(this.port=i.substr(1)),e=e.substr(0,e.length-i.length)),e&&(this.hostname=e)},t.parse=w,t.resolve=function(e,i){return w(e,!1,!0).resolve(i)},t.resolveObject=function(e,i){return e?w(e,!1,!0).resolveObject(i):i},t.format=function(e){return"string"==typeof e&&(e=w(e)),e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a},{"punycode/":42,qs:44}],75:[function(e,i,t){(function(e){(function(){function t(i){try{if(!e.localStorage)return!1}catch(e){return!1}var t=e.localStorage[i];return null!=t&&"true"===String(t).toLowerCase()}i.exports=function(e,i){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],76:[function(e,i,t){i.exports=function(){for(var e={},i=0;i=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),u=n.call(r,"finallyLoc");if(s&&u){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),q(t),v}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;q(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(i,t,n){return this.delegate={iterator:R(i),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),v}},i}function p(e){return function(e){if(Array.isArray(e))return w(e)}(e)||c(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function g(e){for(var i=1;ie.length)&&(i=e.length);for(var t=0,n=Array(i);t>18&63]+B[a>>12&63]+B[a>>6&63]+B[63&a]);return o.join("")}function F(e){var i;_||N();for(var t=e.length,n=t%3,a="",o=[],r=0,l=t-n;rl?l:r+16383));return 1===n?(i=e[t-1],a+=B[i>>2],a+=B[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=B[i>>10],a+=B[i>>4&63],a+=B[i<<2&63],a+="="),o.push(a),o.join("")}function J(e,i,t,n,a){var o,r,l=8*a-n-1,s=(1<>1,p=-7,c=t?a-1:0,d=t?-1:1,g=e[i+c];for(c+=d,o=g&(1<<-p)-1,g>>=-p,p+=l;p>0;o=256*o+e[i+c],c+=d,p-=8);for(r=o&(1<<-p)-1,o>>=-p,p+=n;p>0;r=256*r+e[i+c],c+=d,p-=8);if(0===o)o=1-u;else{if(o===s)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,n),o-=u}return(g?-1:1)*r*Math.pow(2,o-n)}function V(e,i,t,n,a,o){var r,l,s,u=8*o-a-1,p=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,h=n?1:-1,m=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,r=p):(r=Math.floor(Math.log(i)/Math.LN2),i*(s=Math.pow(2,-r))<1&&(r--,s*=2),(i+=r+c>=1?d/s:d*Math.pow(2,1-c))*s>=2&&(r++,s/=2),r+c>=p?(l=0,r=p):r+c>=1?(l=(i*s-1)*Math.pow(2,a),r+=c):(l=i*Math.pow(2,c-1)*Math.pow(2,a),r=0));a>=8;e[t+g]=255&l,g+=h,l/=256,a-=8);for(r=r<0;e[t+g]=255&r,g+=h,r/=256,u-=8);e[t+g-h]|=128*m}var Q={}.toString,H=Array.isArray||function(e){return"[object Array]"==Q.call(e)};function Y(){return X.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function $(e,i){if(Y()=Y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y().toString(16)+" bytes");return 0|e}function ae(e){return!(null==e||!e._isBuffer)}function oe(e,i){if(ae(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var n=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return qe(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return Ee(e).length;default:if(n)return qe(e).length;i=(""+i).toLowerCase(),n=!0}}function re(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function le(e,i,t,n,a){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=a?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(a)return-1;t=e.length-1}else if(t<0){if(!a)return-1;t=0}if("string"==typeof i&&(i=X.from(i,n)),ae(i))return 0===i.length?-1:se(e,i,t,n,a);if("number"==typeof i)return i&=255,X.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):se(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function se(e,i,t,n,a){var o,r=1,l=e.length,s=i.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||i.length<2)return-1;r=2,l/=2,s/=2,t/=2}function u(e,i){return 1===r?e[i]:e.readUInt16BE(i*r)}if(a){var p=-1;for(o=t;ol&&(t=l-s),o=t;o>=0;o--){for(var c=!0,d=0;da&&(n=a):n=a;var o=i.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var r=0;r>8,a=t%256,o.push(a),o.push(n);return o}(i,e.length-t),e,t,n)}function me(e,i,t){return 0===i&&t===e.length?F(e):F(e.slice(i,t))}function fe(e,i,t){t=Math.min(e.length,t);for(var n=[],a=i;a239?4:u>223?3:u>191?2:1;if(a+c<=t)switch(c){case 1:u<128&&(p=u);break;case 2:128==(192&(o=e[a+1]))&&(s=(31&u)<<6|63&o)>127&&(p=s);break;case 3:o=e[a+1],r=e[a+2],128==(192&o)&&128==(192&r)&&(s=(15&u)<<12|(63&o)<<6|63&r)>2047&&(s<55296||s>57343)&&(p=s);break;case 4:o=e[a+1],r=e[a+2],l=e[a+3],128==(192&o)&&128==(192&r)&&128==(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&l)>65535&&s<1114112&&(p=s)}null===p?(p=65533,c=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),a+=c}return function(e){var i=e.length;if(i<=ve)return String.fromCharCode.apply(String,e);var t="",n=0;for(;nthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ce(this,i,t);case"utf8":case"utf-8":return fe(this,i,t);case"ascii":return we(this,i,t);case"latin1":case"binary":return ye(this,i,t);case"base64":return me(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},X.prototype.equals=function(e){if(!ae(e))throw new TypeError("Argument must be a Buffer");return this===e||0===X.compare(this,e)},X.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},X.prototype.compare=function(e,i,t,n,a){if(!ae(e))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=0),void 0===t&&(t=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),i<0||t>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&i>=t)return 0;if(n>=a)return-1;if(i>=t)return 1;if(i>>>=0,t>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,r=t-i,l=Math.min(o,r),s=this.slice(n,a),u=e.slice(i,t),p=0;pa)&&(t=a),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ue(this,e,i,t);case"utf8":case"utf-8":return pe(this,e,i,t);case"ascii":return ce(this,e,i,t);case"latin1":case"binary":return de(this,e,i,t);case"base64":return ge(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},X.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ve=4096;function we(e,i,t){var n="";t=Math.min(e.length,t);for(var a=i;an)&&(t=n);for(var a="",o=i;ot)throw new RangeError("Trying to access beyond buffer length")}function Ae(e,i,t,n,a,o){if(!ae(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function ke(e,i,t,n){i<0&&(i=65535+i+1);for(var a=0,o=Math.min(e.length-t,2);a>>8*(n?a:1-a)}function je(e,i,t,n){i<0&&(i=4294967295+i+1);for(var a=0,o=Math.min(e.length-t,4);a>>8*(n?a:3-a)&255}function Pe(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Oe(e,i,t,n,a){return a||Pe(e,0,t,4),V(e,i,t,n,23,4),t+4}function Te(e,i,t,n,a){return a||Pe(e,0,t,8),V(e,i,t,n,52,8),t+8}X.prototype.slice=function(e,i){var t,n=this.length;if(e=~~e,i=void 0===i?n:~~i,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),i<0?(i+=n)<0&&(i=0):i>n&&(i=n),i0&&(a*=256);)n+=this[e+--i]*a;return n},X.prototype.readUInt8=function(e,i){return i||be(e,1,this.length),this[e]},X.prototype.readUInt16LE=function(e,i){return i||be(e,2,this.length),this[e]|this[e+1]<<8},X.prototype.readUInt16BE=function(e,i){return i||be(e,2,this.length),this[e]<<8|this[e+1]},X.prototype.readUInt32LE=function(e,i){return i||be(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},X.prototype.readUInt32BE=function(e,i){return i||be(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},X.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||be(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},X.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||be(e,i,this.length);for(var n=i,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*i)),o},X.prototype.readInt8=function(e,i){return i||be(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},X.prototype.readInt16LE=function(e,i){i||be(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},X.prototype.readInt16BE=function(e,i){i||be(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},X.prototype.readInt32LE=function(e,i){return i||be(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},X.prototype.readInt32BE=function(e,i){return i||be(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},X.prototype.readFloatLE=function(e,i){return i||be(e,4,this.length),J(this,e,!0,23,4)},X.prototype.readFloatBE=function(e,i){return i||be(e,4,this.length),J(this,e,!1,23,4)},X.prototype.readDoubleLE=function(e,i){return i||be(e,8,this.length),J(this,e,!0,52,8)},X.prototype.readDoubleBE=function(e,i){return i||be(e,8,this.length),J(this,e,!1,52,8)},X.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||Ae(this,e,i,t,Math.pow(2,8*t)-1,0);var a=1,o=0;for(this[i]=255&e;++o=0&&(o*=256);)this[i+a]=e/o&255;return i+t},X.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,1,255,0),X.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},X.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,65535,0),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):ke(this,e,i,!0),i+2},X.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,65535,0),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):ke(this,e,i,!1),i+2},X.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,4294967295,0),X.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):je(this,e,i,!0),i+4},X.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,4294967295,0),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):je(this,e,i,!1),i+4},X.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);Ae(this,e,i,t,a-1,-a)}var o=0,r=1,l=0;for(this[i]=255&e;++o>0)-l&255;return i+t},X.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);Ae(this,e,i,t,a-1,-a)}var o=t-1,r=1,l=0;for(this[i+o]=255&e;--o>=0&&(r*=256);)e<0&&0===l&&0!==this[i+o+1]&&(l=1),this[i+o]=(e/r>>0)-l&255;return i+t},X.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,1,127,-128),X.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},X.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,32767,-32768),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):ke(this,e,i,!0),i+2},X.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,32767,-32768),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):ke(this,e,i,!1),i+2},X.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,2147483647,-2147483648),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):je(this,e,i,!0),i+4},X.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):je(this,e,i,!1),i+4},X.prototype.writeFloatLE=function(e,i,t){return Oe(this,e,i,!0,t)},X.prototype.writeFloatBE=function(e,i,t){return Oe(this,e,i,!1,t)},X.prototype.writeDoubleLE=function(e,i,t){return Te(this,e,i,!0,t)},X.prototype.writeDoubleBE=function(e,i,t){return Te(this,e,i,!1,t)},X.prototype.copy=function(e,i,t,n){if(t||(t=0),n||0===n||(n=this.length),i>=e.length&&(i=e.length),i||(i=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-i=0;--a)e[a+i]=this[a+t];else if(o<1e3||!X.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=i;o55295&&t<57344){if(!a){if(t>56319){(i-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(i-=3)>-1&&o.push(239,191,189);continue}a=t;continue}if(t<56320){(i-=3)>-1&&o.push(239,191,189),a=t;continue}t=65536+(a-55296<<10|t-56320)}else a&&(i-=3)>-1&&o.push(239,191,189);if(a=null,t<128){if((i-=1)<0)break;o.push(t)}else if(t<2048){if((i-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function Ee(e){return function(e){var i,t,n,a,o,r;_||N();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[l-2]?2:"="===e[l-1]?1:0,r=new L(3*l/4-o),n=o>0?l-4:l;var s=0;for(i=0,t=0;i>16&255,r[s++]=a>>8&255,r[s++]=255&a;return 2===o?(a=z[e.charCodeAt(i)]<<2|z[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=z[e.charCodeAt(i)]<<10|z[e.charCodeAt(i+1)]<<4|z[e.charCodeAt(i+2)]>>2,r[s++]=a>>8&255,r[s++]=255&a),r}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Me,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Re(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function Ue(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ge={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},xe={formats:{JSON:"json",TEXT:"text"}},De=function(){return b(function e(){C(this,e),this.log_level=Ge.level.LNone,this.log_format=xe.formats.TEXT,this.log_to_console=!0,this.log_file_path,this.log_response_body=!1,this.log_request_body=!1,this.setLogger()},[{key:"logLevelEnum",get:function(){return Ge}},{key:"logFormatEnum",get:function(){return xe}},{key:"setLogger",value:function(){}},{key:"log",value:function(e,i,t,n,a,o,r,l){var s=this.formatLog(e,i,t,n,a,o,r,l);"undefined"!=typeof window?this.calculateLogLevel(e)>0&&!0===this.log_to_console&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(s):console.log("".concat(e.toUpperCase(),": ").concat(s))):this.logger.transports.length>0&&this.logger.log(e,s)}},{key:"calculateLogLevel",value:function(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}},{key:"formatLog",value:function(e,i,t,n,a,o,r,l){var s,u=a?JSON.parse(JSON.stringify(a)):null,p=o?JSON.parse(JSON.stringify(o)):null,c=r?JSON.parse(JSON.stringify(r)):null,d=l?JSON.parse(JSON.stringify(l)):null;return a&&(u.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(d=void 0),this.log_format&&this.log_format===xe.formats.JSON?(s={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},u&&(s.requestHeaders=u),p&&(s.responseHeaders=p),c&&(s.requestBody=c),d&&(s.responseBody=d)):s="".concat((new Date).toISOString(),"\n=== REQUEST === \n").concat(this.formatValue("URL",decodeURIComponent(n))).concat(this.formatValue("Method",t)).concat(this.formatValue("Headers",this.formatHeaderString(u))).concat(this.formatValue("Body",c?JSON.stringify(c,null,2):""),"\n=== RESPONSE ===\n").concat(this.formatValue("Status",i)).concat(this.formatValue("Headers",this.formatHeaderString(p))).concat(this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")).concat(this.formatValue("Body",d?JSON.stringify(d,null,2):"")),s}},{key:"formatHeaderString",value:function(e){var i="";if(!e)return i;for(var t=0,n=Object.entries(e);t-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}},{key:"setEnvironment",value:function(e){this.environment=e||(this.host?this.host:"mypurecloud.com"),this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath="https://api.".concat(this.environment),this.authUrl="https://login.".concat(this.environment)}},{key:"getConfUrl",value:function(e,i){if(!this.gateway)return i;if(!this.gateway.host)return i;var t=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(t=t+":"+this.gateway.port.toString()),"login"===e?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?t+=this.gateway.path_params_login:t=t+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?t+=this.gateway.path_params_api:t=t+"/"+this.gateway.path_params_api),t}},{key:"getConfigString",value:function(e,i){if(this.config._sections[e])return this.config._sections[e][i]}},{key:"getConfigBoolean",value:function(e,i){if(this.config._sections[e]&&void 0!==this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?"true"===this.config._sections[e][i]:this.config._sections[e][i]}},{key:"getConfigInt",value:function(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}}])}();function Be(){throw new Error("setTimeout has not been defined")}function ze(){throw new Error("clearTimeout has not been defined")}var Le=Be,_e=ze;function Ne(e){if(Le===setTimeout)return setTimeout(e,0);if((Le===Be||!Le)&&setTimeout)return Le=setTimeout,setTimeout(e,0);try{return Le(e,0)}catch(i){try{return Le.call(null,e,0)}catch(i){return Le.call(this,e,0)}}}"function"==typeof W.setTimeout&&(Le=setTimeout),"function"==typeof W.clearTimeout&&(_e=clearTimeout);var Ke,Fe=[],Je=!1,Ve=-1;function Qe(){Je&&Ke&&(Je=!1,Ke.length?Fe=Ke.concat(Fe):Ve=-1,Fe.length&&He())}function He(){if(!Je){var e=Ne(Qe);Je=!0;for(var i=Fe.length;i;){for(Ke=Fe,Fe=[];++Ve1)for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==a&&a;if(null!==e&&void 0!==e)if("object"!==k(e)&&(e=[e]),vi(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Di="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:W,Wi=function(e){return!wi(e)&&e!==Di};var Bi,zi=(Bi="undefined"!=typeof Uint8Array&&gi(Uint8Array),function(e){return Bi&&e instanceof Bi}),Li=mi("HTMLFormElement"),_i=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),Ni=mi("RegExp"),Ki=function(e,i){var t={};Gi(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},Fi="abcdefghijklmnopqrstuvwxyz",Ji={DIGIT:"0123456789",ALPHA:Fi,ALPHA_DIGIT:Fi+Fi.toUpperCase()+"0123456789"};var Vi,Qi,Hi,Yi,$i=mi("AsyncFunction"),Xi=(Vi="function"==typeof a,Qi=Ii(Di.postMessage),Vi?a:Qi?(Hi="axios@".concat(Math.random()),Yi=[],Di.addEventListener("message",function(e){var i=e.source,t=e.data;i===Di&&t===Hi&&Yi.length&&Yi.shift()()},!1),function(e){Yi.push(e),Di.postMessage(Hi,"*")}):function(e){return setTimeout(e)}),Zi="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Di):void 0!==ui&&Ye||Xi,et={isArray:vi,isArrayBuffer:yi,isBuffer:function(e){return null!==e&&!wi(e)&&null!==e.constructor&&!wi(e.constructor)&&Ii(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||Ii(e.append)&&("formdata"===(i=hi(e))||"object"===i&&Ii(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&yi(e.buffer)},isString:Ci,isNumber:bi,isBoolean:function(e){return!0===e||!1===e},isObject:Ai,isPlainObject:ki,isReadableStream:qi,isRequest:Ei,isResponse:Ri,isHeaders:Ui,isUndefined:wi,isDate:ji,isFile:Pi,isBlob:Oi,isRegExp:Ni,isFunction:Ii,isStream:function(e){return Ai(e)&&Ii(e.pipe)},isURLSearchParams:Mi,isTypedArray:zi,isFileList:Ti,forEach:Gi,merge:function e(){for(var i=(Wi(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&xi(t,a)||a;ki(t[o])&&ki(n)?t[o]=e(t[o],n):ki(n)?t[o]=e({},n):vi(n)?t[o]=n.slice():t[o]=n},a=0,o=arguments.length;a3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,i,t,n){e.prototype=Object.create(i.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:i.prototype}),t&&Object.assign(e.prototype,t)},toFlatObject:function(e,i,t,n){var a,o,r,l={};if(i=i||{},null==e)return i;do{for(o=(a=Object.getOwnPropertyNames(e)).length;o-- >0;)r=a[o],n&&!n(r,e,i)||l[r]||(i[r]=e[r],l[r]=!0);e=!1!==t&&gi(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:hi,kindOfTest:mi,endsWith:function(e,i,t){e=String(e),(void 0===t||t>e.length)&&(t=e.length),t-=i.length;var n=e.indexOf(i,t);return-1!==n&&n===t},toArray:function(e){if(!e)return null;if(vi(e))return e;var i=e.length;if(!bi(i))return null;for(var t=new Array(i);i-- >0;)t[i]=e[i];return t},forEachEntry:function(e,i){for(var t,n=(e&&e[Symbol.iterator]).call(e);(t=n.next())&&!t.done;){var a=t.value;i.call(e,a[0],a[1])}},matchAll:function(e,i){for(var t,n=[];null!==(t=e.exec(i));)n.push(t);return n},isHTMLForm:Li,hasOwnProperty:_i,hasOwnProp:_i,reduceDescriptors:Ki,freezeMethods:function(e){Ki(e,function(i,t){if(Ii(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];Ii(n)&&(i.enumerable=!1,"writable"in i?i.writable=!1:i.set||(i.set=function(){throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:function(e,i){var t={},n=function(e){e.forEach(function(e){t[e]=!0})};return vi(e)?n(e):n(String(e).split(i)),t},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,t){return i.toUpperCase()+t})},noop:function(){},toFiniteNumber:function(e,i){return null!=e&&Number.isFinite(e=+e)?e:i},findKey:xi,global:Di,isContextDefined:Wi,ALPHABET:Ji,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&Ii(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10),t=function(e,n){if(Ai(e)){if(i.indexOf(e)>=0)return;if(!("toJSON"in e)){i[n]=e;var a=vi(e)?[]:{};return Gi(e,function(e,i){var o=t(e,n+1);!wi(o)&&(a[i]=o)}),i[n]=void 0,a}}return e};return t(e,0)},isAsyncFn:$i,isThenable:function(e){return e&&(Ai(e)||Ii(e))&&Ii(e.then)&&Ii(e.catch)},setImmediate:Xi,asap:Zi};function it(e,i,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",i&&(this.code=i),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}et.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.status}}});var tt=it.prototype,nt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){nt[e]={value:e}}),Object.defineProperties(it,nt),Object.defineProperty(tt,"isAxiosError",{value:!0}),it.from=function(e,i,t,n,a,o){var r=Object.create(tt);return et.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),it.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function at(e){return et.isPlainObject(e)||et.isArray(e)}function ot(e){return et.endsWith(e,"[]")?e.slice(0,-2):e}function rt(e,i,t){return e?e.concat(i).map(function(e,i){return e=ot(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var lt=et.toFlatObject(et,{},null,function(e){return/^is[A-Z]/.test(e)});function st(e,i,t){if(!et.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=et.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!et.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&et.isSpecCompliantForm(i);if(!et.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(et.isDate(e))return e.toISOString();if(!l&&et.isBlob(e))throw new it("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(e)||et.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):X.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===k(e))if(et.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(et.isArray(e)&&function(e){return et.isArray(e)&&!e.some(at)}(e)||(et.isFileList(e)||et.endsWith(t,"[]"))&&(l=et.toArray(e)))return t=ot(t),l.forEach(function(e,n){!et.isUndefined(e)&&null!==e&&i.append(!0===r?rt([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!at(e)||(i.append(rt(a,t,o),s(e)),!1)}var p=[],c=Object.assign(lt,{defaultVisitor:u,convertValue:s,isVisitable:at});if(!et.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!et.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),et.forEach(t,function(t,o){!0===(!(et.isUndefined(t)||null===t)&&a.call(i,t,et.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function ut(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function pt(e,i){this._pairs=[],e&&st(e,this,i)}var ct=pt.prototype;function dt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,i,t){if(!i)return e;var n=t&&t.encode||dt;et.isFunction(t)&&(t={serialize:t});var a,o=t&&t.serialize;if(a=o?o(i,t):et.isURLSearchParams(i)?i.toString():new pt(i,t).toString(n)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ct.append=function(e,i){this._pairs.push([e,i])},ct.toString=function(e){var i=e?function(i){return e.call(this,i,ut)}:ut;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var ht=function(){return b(function e(){C(this,e),this.handlers=[]},[{key:"use",value:function(e,i,t){return this.handlers.push({fulfilled:e,rejected:i,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){et.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ft={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:pt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vt="undefined"!=typeof window&&"undefined"!=typeof document,wt="object"===("undefined"==typeof navigator?"undefined":k(navigator))&&navigator||void 0,yt=vt&&(!wt||["ReactNative","NativeScript","NS"].indexOf(wt.product)<0),Ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,It=vt&&window.location.href||"http://localhost",bt=g(g({},Object.freeze({__proto__:null,hasBrowserEnv:vt,hasStandardBrowserWebWorkerEnv:Ct,hasStandardBrowserEnv:yt,navigator:wt,origin:It})),ft);function At(e){function i(e,t,n,a){var o=e[a++];if("__proto__"===o)return!0;var r=Number.isFinite(+o),l=a>=e.length;return o=!o&&et.isArray(n)?n.length:o,l?(et.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&et.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&et.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=et.isObject(e);if(o&&et.isHTMLForm(e)&&(e=new FormData(e)),et.isFormData(e))return a?JSON.stringify(At(e)):e;if(et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e)||et.isReadableStream(e))return e;if(et.isArrayBufferView(e))return e.buffer;if(et.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,i){return st(e,new bt.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return bt.isNode&&et.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=et.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return st(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(et.isString(e))try{return(i||JSON.parse)(e),et.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||kt.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(et.isResponse(e)||et.isReadableStream(e))return e;if(e&&et.isString(e)&&(t&&!this.responseType||n)){var a=!(i&&i.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw it.from(e,it.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};et.forEach(["delete","get","head","post","put","patch"],function(e){kt.headers[e]={}});var jt=kt,Pt=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ot=Symbol("internals");function Tt(e){return e&&String(e).trim().toLowerCase()}function Mt(e){return!1===e||null==e?e:et.isArray(e)?e.map(Mt):String(e)}function St(e,i,t,n,a){return et.isFunction(n)?n.call(this,i,t):(a&&(i=t),et.isString(i)?et.isString(n)?-1!==i.indexOf(n):et.isRegExp(n)?n.test(i):void 0:void 0)}var qt=function(){return b(function e(i){C(this,e),i&&this.set(i)},[{key:"set",value:function(e,i,t){var n=this;function a(e,i,t){var a=Tt(i);if(!a)throw new Error("header name must be a non-empty string");var o=et.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Mt(e))}var o=function(e,i){return et.forEach(e,function(e,t){return a(e,t,i)})};if(et.isPlainObject(e)||e instanceof this.constructor)o(e,i);else if(et.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(function(e){var i,t,n,a={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),i=e.substring(0,n).trim().toLowerCase(),t=e.substring(n+1).trim(),!i||a[i]&&Pt[i]||("set-cookie"===i?a[i]?a[i].push(t):a[i]=[t]:a[i]=a[i]?a[i]+", "+t:t)}),a}(e),i);else if(et.isHeaders(e)){var r,l=function(e,i){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))||i&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(l)throw o}}}}(e.entries());try{for(l.s();!(r=l.n()).done;){var s=m(r.value,2),u=s[0];a(s[1],u,t)}}catch(e){l.e(e)}finally{l.f()}}else null!=e&&a(i,e,t);return this}},{key:"get",value:function(e,i){if(e=Tt(e)){var t=et.findKey(this,e);if(t){var n=this[t];if(!i)return n;if(!0===i)return function(e){for(var i,t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;i=n.exec(e);)t[i[1]]=i[2];return t}(n);if(et.isFunction(i))return i.call(this,n,t);if(et.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=Tt(e)){var t=et.findKey(this,e);return!(!t||void 0===this[t]||i&&!St(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=Tt(e)){var a=et.findKey(t,e);!a||i&&!St(0,t[a],a,i)||(delete t[a],n=!0)}}return et.isArray(e)?e.forEach(a):a(e),n}},{key:"clear",value:function(e){for(var i=Object.keys(this),t=i.length,n=!1;t--;){var a=i[t];e&&!St(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return et.forEach(this,function(n,a){var o=et.findKey(t,a);if(o)return i[o]=Mt(n),void delete i[a];var r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,i,t){return i.toUpperCase()+t})}(a):String(a).trim();r!==a&&delete i[a],i[r]=Mt(n),t[r]=!0}),this}},{key:"concat",value:function(){for(var e,i=arguments.length,t=new Array(i),n=0;n1?t-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:3,n=0,a=function(e,i){e=e||10;var t,n=new Array(e),a=new Array(e),o=0,r=0;return i=void 0!==i?i:1e3,function(l){var s=Date.now(),u=a[r];t||(t=s),n[o]=l,a[o]=s;for(var p=r,c=0;p!==o;)c+=n[p++],p%=e;if((o=(o+1)%e)===r&&(r=(r+1)%e),!(s-t1&&void 0!==arguments[1]?arguments[1]:Date.now();a=o,t=null,n&&(clearTimeout(n),n=null),e.apply(null,i)};return[function(){for(var e=Date.now(),i=e-a,l=arguments.length,s=new Array(l),u=0;u=o?r(s,e):(t=s,n||(n=setTimeout(function(){n=null,r(t)},o-i)))},function(){return t&&r(t)}]}(function(t){var o=t.loaded,r=t.lengthComputable?t.total:void 0,l=o-n,s=a(l);n=o;var u=h({loaded:o,total:r,progress:r?o/r:void 0,bytes:l,rate:s||void 0,estimated:s&&r&&o<=r?(r-o)/s:void 0,event:t,lengthComputable:null!=r},i?"download":"upload",!0);e(u)},t)},Wt=function(e,i){var t=null!=e;return[function(n){return i[0]({lengthComputable:t,total:e,loaded:n})},i[1]]},Bt=function(e){return function(){for(var i=arguments.length,t=new Array(i),n=0;n1?i-1:0),n=1;n1?"since :\n"+l.map(cn).join("\n"):" "+cn(l[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:pn};function hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gt(null,e)}function mn(e){return hn(e),e.headers=Et.from(e.headers),e.data=Rt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gn.getAdapter(e.adapter||jt.adapter)(e).then(function(i){return hn(e),i.data=Rt.call(e,e.transformResponse,i),i.headers=Et.from(i.headers),i},function(i){return Ut(i)||(hn(e),i&&i.response&&(i.response.data=Rt.call(e,e.transformResponse,i.response),i.response.headers=Et.from(i.response.headers))),Promise.reject(i)})}var fn="1.7.9",vn={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){vn[e]=function(t){return k(t)===e||"a"+(i<1?"n ":" ")+e}});var wn={};vn.transitional=function(e,i,t){function n(e,i){return"[Axios v"+fn+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new it(n(a," has been removed"+(i?" in "+i:"")),it.ERR_DEPRECATED);return i&&!wn[a]&&(wn[a]=!0,console.warn(n(a," has been deprecated since v"+i+" and will be removed in the near future"))),!e||e(t,a,o)}},vn.spelling=function(e){return function(i,t){return console.warn("".concat(t," is likely a misspelling of ").concat(e)),!0}};var yn={assertOptions:function(e,i,t){if("object"!==k(e))throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var o=n[a],r=i[o];if(r){var l=e[o],s=void 0===l||r(l,o,e);if(!0!==s)throw new it("option "+o+" must be "+s,it.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}},validators:vn},Cn=yn.validators,In=function(){return b(function e(i){C(this,e),this.defaults=i,this.interceptors={request:new ht,response:new ht}},[{key:"request",value:function(){var e=s(u().mark(function e(i,t){var n,a;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(i,t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,a=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?a&&!String(e.t0.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+a):e.t0.stack=a}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}},e,this,[[0,6]])}));return function(i,t){return e.apply(this,arguments)}}()},{key:"_request",value:function(e,i){"string"==typeof e?(i=i||{}).url=e:i=e||{};var t=i=Kt(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&yn.assertOptions(n,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),null!=a&&(et.isFunction(a)?i.paramsSerializer={serialize:a}:yn.assertOptions(a,{encode:Cn.function,serialize:Cn.function},!0)),yn.assertOptions(i,{baseUrl:Cn.spelling("baseURL"),withXsrfToken:Cn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&et.merge(o.common,o[i.method]);o&&et.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Et.concat(r,o);var l=[],s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(i)||(s=s&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});var u,p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});var c,d=0;if(!s){var g=[mn.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,p),c=g.length,u=Promise.resolve(i);d0;)n._listeners[i](e);n._listeners=null}}),this.promise.then=function(e){var i,t=new Promise(function(e){n.subscribe(e),i=e}).then(e);return t.cancel=function(){n.unsubscribe(i)},t},i(function(e,i,a){n.reason||(n.reason=new Gt(e,i,a),t(n.reason))})}return b(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var i=this._listeners.indexOf(e);-1!==i&&this._listeners.splice(i,1)}}},{key:"toAbortSignal",value:function(){var e=this,i=new AbortController,t=function(e){i.abort(e)};return this.subscribe(t),i.signal.unsubscribe=function(){return e.unsubscribe(t)},i.signal}}],[{key:"source",value:function(){var i;return{token:new e(function(e){i=e}),cancel:i}}}])}();var kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kn).forEach(function(e){var i=m(e,2),t=i[0],n=i[1];kn[n]=t});var jn=kn;var Pn=function e(i){var t=new bn(i),n=pi(bn.prototype.request,t);return et.extend(n,bn.prototype,t,{allOwnKeys:!0}),et.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Kt(i,t))},n}(jt);Pn.Axios=bn,Pn.CanceledError=Gt,Pn.CancelToken=An,Pn.isCancel=Ut,Pn.VERSION=fn,Pn.toFormData=st,Pn.AxiosError=it,Pn.Cancel=Pn.CanceledError,Pn.all=function(e){return Promise.all(e)},Pn.spread=function(e){return function(i){return e.apply(null,i)}},Pn.isAxiosError=function(e){return et.isObject(e)&&!0===e.isAxiosError},Pn.mergeConfig=Kt,Pn.AxiosHeaders=Et,Pn.formToJSON=function(e){return At(et.isHTMLForm(e)?new FormData(e):e)},Pn.getAdapter=gn.getAdapter,Pn.HttpStatusCode=jn,Pn.default=Pn;var On=Pn,Tn=function(){return b(function e(){C(this,e),this.timeout=16e3},[{key:"setTimeout",value:function(e){if(null===e||void 0===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}},{key:"setHttpsAgent",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}},{key:"request",value:function(e){throw new Error("method must be implemented")}}])}(),Mn=function(){return b(function e(i,t,n,a,o,r){C(this,e),this.setUrl(i),this.setMethod(t),n&&this.setHeaders(n),a&&this.setParams(a),o&&this.setData(o),null!==r&&void 0!==r?this.setTimeout(r):this.timeout=16e3},[{key:"setUrl",value:function(e){if(!e)throw new Error("The 'url' property is required");this.url=e}},{key:"setMethod",value:function(e){if(!e||!["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"].includes(e.toUpperCase()))throw new Error("The 'method' property is invalid or missing");this.method=e.toUpperCase()}},{key:"setData",value:function(e){if(void 0===e||null===e)throw new Error("The 'data' property is required");this.data=e}},{key:"setParams",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'params' property must be an object");this.params=e}},{key:"setHeaders",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'headers' property must be an object");this.headers=e}},{key:"setTimeout",value:function(e){if(void 0===e||null===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}}])}(),Sn=function(e){function i(e,t){var a;return C(this,i),a=n(this,i),null!==e&&void 0!==e?a.setTimeout(e):a.timeout=16e3,null!==t&&void 0!==t?a.setHttpsAgent(t):a.httpsAgent,a._axiosInstance=On.create({}),a}return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&r(e,i)}(i,Tn),b(i,[{key:"request",value:function(e){if(!(e instanceof Mn))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");var i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}},{key:"toAxiosConfig",value:function(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),null!=this.timeout&&void 0!=this.timeout&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}}])}(),qn=function(){function e(){C(this,e),e.instance||(e.instance=this),this.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"};try{localStorage.setItem("purecloud_local_storage_test","purecloud_local_storage_test"),localStorage.removeItem("purecloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this.authentications={"Guest Chat JWT":{type:"apiKey",in:"header",name:"Authorization"},"PureCloud OAuth":{type:"oauth2"}},this.defaultHeaders={},this.timeout=16e3,this.authData={},this.settingsPrefix="purecloud",this.refreshInProgress=!1,this.httpClient,this.proxyAgent,this.config=new We,"undefined"!=typeof window&&(window.ApiClient=this)}return b(e,[{key:"instance",get:function(){return e.instance},set:function(i){e.instance=i}},{key:"setReturnExtendedResponses",value:function(e){this.returnExtended=e}},{key:"setPersistSettings",value:function(e,i){this.persistSettings=e,this.settingsPrefix=i?i.replace(/\W+/g,"_"):"purecloud"}},{key:"_saveSettings",value:function(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;var i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem("".concat(this.settingsPrefix,"_auth_data"),JSON.stringify(i))}catch(e){console.error(e)}}},{key:"_loadSettings",value:function(){if(!0===this.persistSettings&&this.hasLocalStorage){var e=this.authData.state;this.authData=localStorage.getItem("".concat(this.settingsPrefix,"_auth_data")),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}}},{key:"setEnvironment",value:function(e){this.config.setEnvironment(e)}},{key:"setHttpClient",value:function(e){if(!(e instanceof Tn))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}},{key:"getHttpClient",value:function(){return this.httpClient?this.httpClient:(this.httpClient=new Sn(this.timeout,this.proxyAgent),this.httpClient)}},{key:"setMTLSCertificates",value:function(e,i,t){throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead")}},{key:"setMTLSContents",value:function(e,i,t){var n={};e&&(n.cert=e),i&&(n.key=i),t&&(n.ca=t),n.rejectUnauthorized=!0,this.proxyAgent=new G.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}},{key:"setGateway",value:function(e){this.config.setGateway(e)}},{key:"loginImplicitGrant",value:function(e,i,t){var n=this,a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,t||(t={}),new Promise(function(e,i){if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),a&&a.error)return a.accessToken=void 0,n._saveSettings(a),i(new Error("[".concat(a.error,"] ").concat(a.error_description)));n._testTokenAccess().then(function(){!n.authData.state&&t.state&&(n.authData.state=t.state),e(n.authData)}).catch(function(e){var i={client_id:encodeURIComponent(n.clientId),redirect_uri:encodeURIComponent(n.redirectUri),response_type:"token"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var a=n._buildAuthUrl("oauth/authorize",i);window.location.replace(a)})})}},{key:"loginClientCredentialsGrant",value:function(e,i){var t=this;this.clientId=e;var n=X.from("".concat(e,":").concat(i)).toString("base64"),a=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(e,i){if("undefined"==typeof window){var o={Authorization:"Basic ".concat(n)},r=new Mn("".concat(a,"/oauth/token"),"POST",o,null,"grant_type=client_credentials",t.timeout);t.getHttpClient().request(r).then(function(i){t.config.logger.log("trace",i.status,"POST","".concat(a,"/oauth/token"),o,i.headers,{grant_type:"client_credentials"},void 0),t.config.logger.log("debug",i.status,"POST","".concat(a,"/oauth/token"),o,void 0,{grant_type:"client_credentials"},void 0),t.setAccessToken(i.data.access_token),t.authData.tokenExpiryTime=(new Date).getTime()+1e3*i.data.expires_in,t.authData.tokenExpiryTimeString=new Date(t.authData.tokenExpiryTime).toUTCString(),e(t.authData)}).catch(function(e){e.response&&t.config.logger.log("error",e.response.status,"POST","".concat(a,"/oauth/token"),o,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})}else i(new Error("The client credentials grant is not supported in a browser."))})}},{key:"loginSaml2BearerGrant",value:function(e,i,t,n){var a=this;this.clientId=e;var o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(r,l){if("undefined"==typeof window){var s=X.from(e+":"+i).toString("base64"),u=a._formAuthRequest(s,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});u.proxy=a.proxy;var p={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};u.then(function(e){a.config.logger.log("trace",e.status,"POST","".concat(o,"/oauth/token"),u.headers,e.headers,p,void 0),a.config.logger.log("debug",e.status,"POST","".concat(o,"/oauth/token"),u.headers,void 0,p,void 0);var i=e.data.access_token;a.setAccessToken(i),a.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),r(a.authData)}).catch(function(e){e.response&&a.config.logger.log("error",e.response.status,"POST","".concat(o,"/oauth/token"),u.headers,e.response.headers,p,e.response.data),l(e)})}else l(new Error("The saml2bearer grant is not supported in a browser."))})}},{key:"authorizePKCEGrant",value:function(e,i,t,n){var a=this;this.clientId=e;var o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(r,l){var s=x.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n}),u=new Mn("".concat(o,"/oauth/token"),"POST",{"Content-Type":"application/x-www-form-urlencoded"},null,s,a.timeout),p=a.getHttpClient(),c={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n};p.request(u).then(function(e){a.config.logger.log("trace",e.status,"POST","".concat(o,"/oauth/token"),u.headers,e.headers,c,void 0),a.config.logger.log("debug",e.status,"POST","".concat(o,"/oauth/token"),u.headers,void 0,c,void 0);var i=e.data.access_token;a.setAccessToken(i),a.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),r(a.authData)}).catch(function(e){e.response&&a.config.logger.log("error",e.response.status,"POST","".concat(o,"/oauth/token"),u.headers,e.response.headers,c,e.response.data),l(e)})})}},{key:"generatePKCECodeVerifier",value:function(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(function(e){return i[e%i.length]}).join("")}},{key:"computePKCECodeChallenge",value:function(e){if(e.length<43||e.length>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");var i=(new TextEncoder).encode(e);return new Promise(function(e,t){window.crypto.subtle.digest("SHA-256",i).then(function(i){var t=X.from(i).toString("base64").replaceAll("+","-").replaceAll("/","_");t=t.split("=")[0],e(t)}).catch(function(e){return t(new Error("Code Challenge Error ".concat(e)))})})}},{key:"loginPKCEGrant",value:function(e,i,t,n){var a=this;if(!this.hasLocalStorage&&!n)throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");var o=this._setValuesFromUrlQuery();return this.clientId=e,this.redirectUri=i,this.codeVerifier=n,t||(t={}),new Promise(function(e,i){if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),o&&o.error)return a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),a._saveSettings({accessToken:void 0}),i(new Error("[".concat(o.error,"] ").concat(o.error_description)));o&&o.code?(a.codeVerifier||a.hasLocalStorage&&(a.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),a.authorizePKCEGrant(a.clientId,a.codeVerifier,o.code,a.redirectUri).then(function(){a._testTokenAccess().then(function(){!a.authData.state&&o.state&&(a.authData.state=o.state),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),e(a.authData)}).catch(function(e){return a._saveSettings({accessToken:void 0}),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error("[".concat(e.name,"] ").concat(e.msg)))})}).catch(function(e){return a._saveSettings({accessToken:void 0}),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error("[".concat(e.name,"] ").concat(e.msg)))})):a._testTokenAccess().then(function(){!a.authData.state&&t.state&&(a.authData.state=t.state),e(a.authData)}).catch(function(e){a.codeVerifier||(a.codeVerifier=a.generatePKCECodeVerifier(128),a.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",a.codeVerifier)),a.computePKCECodeChallenge(a.codeVerifier).then(function(e){var i={client_id:encodeURIComponent(a.clientId),redirect_uri:encodeURIComponent(a.redirectUri),code_challenge:encodeURIComponent(e),response_type:"code",code_challenge_method:"S256"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=a._buildAuthUrl("oauth/authorize",i);window.location.replace(n)}).catch(function(e){return i(new Error("[".concat(e.name,"]")))})})})}},{key:"_setValuesFromUrlQuery",value:function(){if("undefined"!=typeof window&&window.location.search){var e={},i=new URLSearchParams(window.location.search),t=i.get("code"),n=i.get("error"),a=i.get("error_description"),o=i.get("state");if(n)return e.error=n,a&&(e.error_description=a),e;t&&(e.code=t,o&&(e.state=o));var r,l,s=window.location;return"replaceState"in history?history.replaceState("",document.title,s.pathname):(r=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,s.pathname),document.body.scrollTop=r,document.body.scrollLeft=l),e}}},{key:"loginCodeAuthorizationGrant",value:function(e,i,t,n){var a=this;return this.clientId=e,this.clientSecret=i,new Promise(function(o,r){if("undefined"==typeof window){var l=X.from(e+":"+i).toString("base64"),s=a._formAuthRequest(l,{grant_type:"authorization_code",code:t,redirect_uri:n});s.proxy=a.proxy;var u={grant_type:"authorization_code",code:t,redirect_uri:n};a._handleCodeAuthorizationResponse(s,u,o,r)}else r(new Error("The Code Authorization grant is not supported in a browser."))})}},{key:"refreshCodeAuthorizationGrant",value:function(e,i,t){var n=this;return new Promise(function(a,o){if("undefined"==typeof window){var r=X.from(e+":"+i).toString("base64"),l=n._formAuthRequest(r,{grant_type:"refresh_token",refresh_token:t});l.proxy=n.proxy;var s={grant_type:"refresh_token",refresh_token:t};n._handleCodeAuthorizationResponse(l,s,a,o)}else o(new Error("The Code Authorization grant is not supported in a browser."))})}},{key:"_handleCodeAuthorizationResponse",value:function(e,i,t,n){var a=this,o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));e.then(function(n){a.config.logger.log("trace",n.status,"POST","".concat(o,"/oauth/token"),e.headers,n.headers,i,void 0),a.config.logger.log("debug",n.status,"POST","".concat(o,"/oauth/token"),e.headers,void 0,i,void 0);var r=n.data.access_token,l=n.data.refresh_token;a.setAccessToken(r),a.authData.refreshToken=l,a.authData.tokenExpiryTime=(new Date).getTime()+1e3*n.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),t(a.authData)}).catch(function(t){t.response&&a.config.logger.log("error",t.response.status,"POST","".concat(o,"/oauth/token"),e.headers,t.response.headers,i,t.response.data),n(t)})}},{key:"_formAuthRequest",value:function(e,i){var t=this.config.getConfUrl("login","https://login.".concat(this.config.environment)),n=new Mn(t,"POST",{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},null,x.default.stringify(i),this.timeout);return this.getHttpClient().request(n)}},{key:"_handleExpiredAccessToken",value:function(){var e=this;return new Promise(function(i,t){"undefined"==typeof window?e.refreshInProgress?e._sleep(e.config.refresh_token_wait_max).then(function(){e.refreshInProgress?t(new Error("Token refresh took longer than ".concat(e.config.refresh_token_wait_max," seconds"))):i()}):(e.refreshInProgress=!0,e.refreshCodeAuthorizationGrant(e.clientId,e.clientSecret,e.authData.refreshToken).then(function(){e.refreshInProgress=!1,i()}).catch(function(i){e.refreshInProgress=!1,t(i)})):t(new Error("This method is not supported in a browser."))})}},{key:"_sleep",value:function(e){return new Promise(function(i){return setTimeout(i,e)})}},{key:"_testTokenAccess",value:function(){var e=this;return new Promise(function(i,t){e._loadSettings(),e.authentications["PureCloud OAuth"].accessToken?e.callApi("/api/v2/tokens/me","GET",null,null,null,null,null,["PureCloud OAuth"],["application/json"],["application/json"]).then(function(){i()}).catch(function(i){e._saveSettings({accessToken:void 0}),t(i)}):t(new Error("Token is not set"))})}},{key:"_setValuesFromUrlHash",value:function(){if("undefined"!=typeof window&&window.location.hash){var e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(function(t){var n=e.exec(t);n&&(i[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){var t={};i.state&&(t.state=i.state),i.expires_in&&(t.tokenExpiryTime=(new Date).getTime()+1e3*parseInt(i.expires_in.replace(/\+/g,"%20")),t.tokenExpiryTimeString=new Date(t.tokenExpiryTime).toUTCString()),t.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,o=window.location;"replaceState"in history?history.replaceState("",document.title,o.pathname+o.search):(n=document.body.scrollTop,a=document.body.scrollLeft,o.hash="",document.body.scrollTop=n,document.body.scrollLeft=a),this._saveSettings(t)}}}},{key:"setAccessToken",value:function(e){this._saveSettings({accessToken:e})}},{key:"setStorageKey",value:function(e){this.storageKey=e,this.setAccessToken(this.authentications["PureCloud OAuth"].accessToken)}},{key:"logout",value:function(e){this.hasLocalStorage&&this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0});var i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var t=this._buildAuthUrl("logout",i);window.location.replace(t)}},{key:"_buildAuthUrl",value:function(e,i){i||(i={});var t=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce(function(e,t){return i[t]?"".concat(e,"&").concat(t,"=").concat(i[t]):e},"".concat(t,"/").concat(e,"?"))}},{key:"paramToString",value:function(e){return e?e instanceof Date?e.toJSON():e instanceof Boolean?e.toString().toLowerCase():e.toString():""}},{key:"serialize",value:function(e){var i={};for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(i[encodeURIComponent(t)]=Array.isArray(e[t])?e[t].join(","):this.paramToString(e[t]));return i}},{key:"addHeaders",value:function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n0?r-4:r;for(t=0;t>16&255,s[p++]=i>>8&255,s[p++]=255&i;2===l&&(i=a[e.charCodeAt(t)]<<2|a[e.charCodeAt(t+1)]>>4,s[p++]=255&i);1===l&&(i=a[e.charCodeAt(t)]<<10|a[e.charCodeAt(t+1)]<<4|a[e.charCodeAt(t+2)]>>2,s[p++]=i>>8&255,s[p++]=255&i);return s},t.fromByteArray=function(e){for(var i,t=e.length,a=t%3,o=[],r=0,l=t-a;rl?l:r+16383));1===a?(i=e[t-1],o.push(n[i>>2]+n[i<<4&63]+"==")):2===a&&(i=(e[t-2]<<8)+e[t-1],o.push(n[i>>10]+n[i>>4&63]+n[i<<2&63]+"="));return o.join("")};for(var n=[],a=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,s=r.length;l0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");return-1===t&&(t=i),[t,t===i?0:4-t%4]}function p(e,i,t){for(var a,o,r=[],l=i;l>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return r.join("")}a["-".charCodeAt(0)]=62,a["_".charCodeAt(0)]=63},{}],2:[function(e,i,t){},{}],3:[function(e,i,t){(function(i){(function(){"use strict";var i=e("base64-js"),n=e("ieee754");t.Buffer=r,t.SlowBuffer=function(e){+e!=e&&(e=0);return r.alloc(+e)},t.INSPECT_MAX_BYTES=50;var a=2147483647;function o(e){if(e>a)throw new RangeError('The value "'+e+'" is invalid for option "size"');var i=new Uint8Array(e);return i.__proto__=r.prototype,i}function r(e,i,t){if("number"==typeof e){if("string"==typeof i)throw new TypeError('The "string" argument must be of type string. Received type number');return u(e)}return l(e,i,t)}function l(e,i,t){if("string"==typeof e)return function(e,i){"string"==typeof i&&""!==i||(i="utf8");if(!r.isEncoding(i))throw new TypeError("Unknown encoding: "+i);var t=0|d(e,i),n=o(t),a=n.write(e,i);a!==t&&(n=n.slice(0,a));return n}(e,i);if(ArrayBuffer.isView(e))return p(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(B(e,ArrayBuffer)||e&&B(e.buffer,ArrayBuffer))return function(e,i,t){if(i<0||e.byteLength=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|e}function d(e,i){if(r.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||B(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===t)return 0;for(var a=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return x(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return D(e).length;default:if(a)return n?-1:x(e).length;i=(""+i).toLowerCase(),a=!0}}function g(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function h(e,i,t,n,a){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),z(t=+t)&&(t=a?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(a)return-1;t=e.length-1}else if(t<0){if(!a)return-1;t=0}if("string"==typeof i&&(i=r.from(i,n)),r.isBuffer(i))return 0===i.length?-1:m(e,i,t,n,a);if("number"==typeof i)return i&=255,"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):m(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function m(e,i,t,n,a){var o,r=1,l=e.length,s=i.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||i.length<2)return-1;r=2,l/=2,s/=2,t/=2}function u(e,i){return 1===r?e[i]:e.readUInt16BE(i*r)}if(a){var p=-1;for(o=t;ol&&(t=l-s),o=t;o>=0;o--){for(var c=!0,d=0;da&&(n=a):n=a;var o=i.length;n>o/2&&(n=o/2);for(var r=0;r>8,a=t%256,o.push(a),o.push(n);return o}(i,e.length-t),e,t,n)}function b(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function A(e,i,t){t=Math.min(e.length,t);for(var n=[],a=i;a239?4:u>223?3:u>191?2:1;if(a+c<=t)switch(c){case 1:u<128&&(p=u);break;case 2:128==(192&(o=e[a+1]))&&(s=(31&u)<<6|63&o)>127&&(p=s);break;case 3:o=e[a+1],r=e[a+2],128==(192&o)&&128==(192&r)&&(s=(15&u)<<12|(63&o)<<6|63&r)>2047&&(s<55296||s>57343)&&(p=s);break;case 4:o=e[a+1],r=e[a+2],l=e[a+3],128==(192&o)&&128==(192&r)&&128==(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&l)>65535&&s<1114112&&(p=s)}null===p?(p=65533,c=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),a+=c}return function(e){var i=e.length;if(i<=k)return String.fromCharCode.apply(String,e);var t="",n=0;for(;nthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return O(this,i,t);case"utf8":case"utf-8":return A(this,i,t);case"ascii":return j(this,i,t);case"latin1":case"binary":return P(this,i,t);case"base64":return b(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},r.prototype.toLocaleString=r.prototype.toString,r.prototype.equals=function(e){if(!r.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===r.compare(this,e)},r.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),""},r.prototype.compare=function(e,i,t,n,a){if(B(e,Uint8Array)&&(e=r.from(e,e.offset,e.byteLength)),!r.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===i&&(i=0),void 0===t&&(t=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),i<0||t>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&i>=t)return 0;if(n>=a)return-1;if(i>=t)return 1;if(i>>>=0,t>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,l=t-i,s=Math.min(o,l),u=this.slice(n,a),p=e.slice(i,t),c=0;c>>=0,isFinite(t)?(t>>>=0,void 0===n&&(n="utf8")):(n=t,t=void 0)}var a=this.length-i;if((void 0===t||t>a)&&(t=a),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return f(this,e,i,t);case"utf8":case"utf-8":return v(this,e,i,t);case"ascii":return w(this,e,i,t);case"latin1":case"binary":return y(this,e,i,t);case"base64":return C(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},r.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var k=4096;function j(e,i,t){var n="";t=Math.min(e.length,t);for(var a=i;an)&&(t=n);for(var a="",o=i;ot)throw new RangeError("Trying to access beyond buffer length")}function S(e,i,t,n,a,o){if(!r.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function q(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function E(e,i,t,a,o){return i=+i,t>>>=0,o||q(e,0,t,4),n.write(e,i,t,a,23,4),t+4}function R(e,i,t,a,o){return i=+i,t>>>=0,o||q(e,0,t,8),n.write(e,i,t,a,52,8),t+8}r.prototype.slice=function(e,i){var t=this.length;e=~~e,i=void 0===i?t:~~i,e<0?(e+=t)<0&&(e=0):e>t&&(e=t),i<0?(i+=t)<0&&(i=0):i>t&&(i=t),i>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e],a=1,o=0;++o>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e+--i],a=1;i>0&&(a*=256);)n+=this[e+--i]*a;return n},r.prototype.readUInt8=function(e,i){return e>>>=0,i||M(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,i){return e>>>=0,i||M(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,i){return e>>>=0,i||M(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,i){return e>>>=0,i||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},r.prototype.readUInt32BE=function(e,i){return e>>>=0,i||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},r.prototype.readIntLE=function(e,i,t){e>>>=0,i>>>=0,t||M(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},r.prototype.readIntBE=function(e,i,t){e>>>=0,i>>>=0,t||M(e,i,this.length);for(var n=i,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*i)),o},r.prototype.readInt8=function(e,i){return e>>>=0,i||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,i){e>>>=0,i||M(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},r.prototype.readInt16BE=function(e,i){e>>>=0,i||M(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},r.prototype.readInt32LE=function(e,i){return e>>>=0,i||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},r.prototype.readInt32BE=function(e,i){return e>>>=0,i||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},r.prototype.readFloatLE=function(e,i){return e>>>=0,i||M(e,4,this.length),n.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,i){return e>>>=0,i||M(e,4,this.length),n.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,i){return e>>>=0,i||M(e,8,this.length),n.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,i){return e>>>=0,i||M(e,8,this.length),n.read(this,e,!1,52,8)},r.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i>>>=0,t>>>=0,n)||S(this,e,i,t,Math.pow(2,8*t)-1,0);var a=1,o=0;for(this[i]=255&e;++o>>=0,t>>>=0,n)||S(this,e,i,t,Math.pow(2,8*t)-1,0);var a=t-1,o=1;for(this[i+a]=255&e;--a>=0&&(o*=256);)this[i+a]=e/o&255;return i+t},r.prototype.writeUInt8=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,1,255,0),this[i]=255&e,i+1},r.prototype.writeUInt16LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,65535,0),this[i]=255&e,this[i+1]=e>>>8,i+2},r.prototype.writeUInt16BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,65535,0),this[i]=e>>>8,this[i+1]=255&e,i+2},r.prototype.writeUInt32LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,4294967295,0),this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e,i+4},r.prototype.writeUInt32BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,4294967295,0),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},r.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i>>>=0,!n){var a=Math.pow(2,8*t-1);S(this,e,i,t,a-1,-a)}var o=0,r=1,l=0;for(this[i]=255&e;++o>0)-l&255;return i+t},r.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i>>>=0,!n){var a=Math.pow(2,8*t-1);S(this,e,i,t,a-1,-a)}var o=t-1,r=1,l=0;for(this[i+o]=255&e;--o>=0&&(r*=256);)e<0&&0===l&&0!==this[i+o+1]&&(l=1),this[i+o]=(e/r>>0)-l&255;return i+t},r.prototype.writeInt8=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,1,127,-128),e<0&&(e=255+e+1),this[i]=255&e,i+1},r.prototype.writeInt16LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,32767,-32768),this[i]=255&e,this[i+1]=e>>>8,i+2},r.prototype.writeInt16BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,2,32767,-32768),this[i]=e>>>8,this[i+1]=255&e,i+2},r.prototype.writeInt32LE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,2147483647,-2147483648),this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24,i+4},r.prototype.writeInt32BE=function(e,i,t){return e=+e,i>>>=0,t||S(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e,i+4},r.prototype.writeFloatLE=function(e,i,t){return E(this,e,i,!0,t)},r.prototype.writeFloatBE=function(e,i,t){return E(this,e,i,!1,t)},r.prototype.writeDoubleLE=function(e,i,t){return R(this,e,i,!0,t)},r.prototype.writeDoubleBE=function(e,i,t){return R(this,e,i,!1,t)},r.prototype.copy=function(e,i,t,n){if(!r.isBuffer(e))throw new TypeError("argument should be a Buffer");if(t||(t=0),n||0===n||(n=this.length),i>=e.length&&(i=e.length),i||(i=0),n>0&&n=this.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-i=0;--o)e[o+i]=this[o+t];else Uint8Array.prototype.set.call(e,this.subarray(t,n),i);return a},r.prototype.fill=function(e,i,t,n){if("string"==typeof e){if("string"==typeof i?(n=i,i=0,t=this.length):"string"==typeof t&&(n=t,t=this.length),void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!r.isEncoding(n))throw new TypeError("Unknown encoding: "+n);if(1===e.length){var a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e&&(e&=255);if(i<0||this.length>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=i;o55295&&t<57344){if(!a){if(t>56319){(i-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(i-=3)>-1&&o.push(239,191,189);continue}a=t;continue}if(t<56320){(i-=3)>-1&&o.push(239,191,189),a=t;continue}t=65536+(a-55296<<10|t-56320)}else a&&(i-=3)>-1&&o.push(239,191,189);if(a=null,t<128){if((i-=1)<0)break;o.push(t)}else if(t<2048){if((i-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function D(e){return i.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function B(e,i){return e instanceof i||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===i.name}function z(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:31}],4:[function(e,i,t){i.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},{}],5:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("./functionApply"),o=e("./functionCall"),r=e("./reflectApply");i.exports=r||n.call(o,a)},{"./functionApply":6,"./functionCall":7,"./reflectApply":9,"function-bind":23}],6:[function(e,i,t){"use strict";i.exports=Function.prototype.apply},{}],7:[function(e,i,t){"use strict";i.exports=Function.prototype.call},{}],8:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("es-errors/type"),o=e("./functionCall"),r=e("./actualApply");i.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new a("a function is required");return r(n,o,e)}},{"./actualApply":5,"./functionCall":7,"es-errors/type":18,"function-bind":23}],9:[function(e,i,t){"use strict";i.exports="undefined"!=typeof Reflect&&Reflect&&Reflect.apply},{}],10:[function(e,i,t){"use strict";var n=e("get-intrinsic"),a=e("call-bind-apply-helpers"),o=a([n("%String.prototype.indexOf%")]);i.exports=function(e,i){var t=n(e,!!i);return"function"==typeof t&&o(e,".prototype.")>-1?a([t]):t}},{"call-bind-apply-helpers":8,"get-intrinsic":24}],11:[function(e,i,t){"use strict";var n,a=e("call-bind-apply-helpers"),o=e("gopd");try{n=[].__proto__===Array.prototype}catch(e){if(!(e&&"object"==typeof e&&"code"in e&&"ERR_PROTO_ACCESS"===e.code))throw e}var r=!!n&&o&&o(Object.prototype,"__proto__"),l=Object,s=l.getPrototypeOf;i.exports=r&&"function"==typeof r.get?a([r.get]):"function"==typeof s&&function(e){return s(null==e?e:l(e))}},{"call-bind-apply-helpers":8,gopd:26}],12:[function(e,i,t){"use strict";var n=Object.defineProperty||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}i.exports=n},{}],13:[function(e,i,t){"use strict";i.exports=EvalError},{}],14:[function(e,i,t){"use strict";i.exports=Error},{}],15:[function(e,i,t){"use strict";i.exports=RangeError},{}],16:[function(e,i,t){"use strict";i.exports=ReferenceError},{}],17:[function(e,i,t){"use strict";i.exports=SyntaxError},{}],18:[function(e,i,t){"use strict";i.exports=TypeError},{}],19:[function(e,i,t){"use strict";i.exports=URIError},{}],20:[function(e,i,t){"use strict";i.exports=Object},{}],21:[function(e,i,t){"use strict";var n,a="object"==typeof Reflect?Reflect:null,o=a&&"function"==typeof a.apply?a.apply:function(e,i,t){return Function.prototype.apply.call(e,i,t)};n=a&&"function"==typeof a.ownKeys?a.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}i.exports=l,i.exports.once=function(e,i){return new Promise(function(t,n){function a(t){e.removeListener(i,o),n(t)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",a),t([].slice.call(arguments))}f(e,i,o,{once:!0}),"error"!==i&&function(e,i,t){"function"==typeof e.on&&f(e,"error",i,t)}(e,a,{once:!0})})},l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var s=10;function u(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function c(e,i,t,n){var a,o,r,l;if(u(t),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",i,t.listener?t.listener:t),o=e._events),r=o[i]),void 0===r)r=o[i]=t,++e._eventsCount;else if("function"==typeof r?r=o[i]=n?[t,r]:[r,t]:n?r.unshift(t):r.push(t),(a=p(e))>0&&r.length>a&&!r.warned){r.warned=!0;var s=new Error("Possible EventEmitter memory leak detected. "+r.length+" "+String(i)+" listeners added. Use emitter.setMaxListeners() to increase limit");s.name="MaxListenersExceededWarning",s.emitter=e,s.type=i,s.count=r.length,l=s,console&&console.warn&&console.warn(l)}return e}function d(e,i,t){var n={fired:!1,wrapFn:void 0,target:e,type:i,listener:t},a=function(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}.bind(n);return a.listener=t,n.wrapFn=a,a}function g(e,i,t){var n=e._events;if(void 0===n)return[];var a=n[i];return void 0===a?[]:"function"==typeof a?t?[a.listener||a]:[a]:t?function(e){for(var i=new Array(e.length),t=0;t0&&(r=i[0]),r instanceof Error)throw r;var l=new Error("Unhandled error."+(r?" ("+r.message+")":""));throw l.context=r,l}var s=a[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,i);else{var u=s.length,p=m(s,u);for(t=0;t=0;o--)if(t[o]===i||t[o].listener===i){r=t[o].listener,a=o;break}if(a<0)return this;0===a?t.shift():function(e,i){for(;i+1=0;n--)this.removeListener(e,i[n]);return this},l.prototype.listeners=function(e){return g(this,e,!0)},l.prototype.rawListeners=function(e){return g(this,e,!1)},l.listenerCount=function(e,i){return"function"==typeof e.listenerCount?e.listenerCount(i):h.call(e,i)},l.prototype.listenerCount=h,l.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]}},{}],22:[function(e,i,t){"use strict";var n=Object.prototype.toString,a=Math.max,o=function(e,i){for(var t=[],n=0;n1&&"boolean"!=typeof i)throw new u('"allowMissing" argument must be a boolean');if(null===W(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var i=D(e,0,1),t=D(e,-1);if("%"===i&&"%"!==t)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==i)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return x(e,B,function(e,i,t,a){n[n.length]=t?x(a,z,"$1"):i||e}),n}(e),n=t.length>0?t[0]:"",a=L("%"+n+"%",i),o=a.name,r=a.value,l=!1,p=a.alias;p&&(n=p[0],G(t,U([0,1],p)));for(var c=1,d=!0;c=t.length){var f=w(r,g);r=(d=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[g]}else d=R(r,g),r=r[g];d&&!l&&(M[o]=r)}}return r}},{"call-bind-apply-helpers/functionApply":6,"call-bind-apply-helpers/functionCall":7,"dunder-proto/get":11,"es-define-property":12,"es-errors":14,"es-errors/eval":13,"es-errors/range":15,"es-errors/ref":16,"es-errors/syntax":17,"es-errors/type":18,"es-errors/uri":19,"es-object-atoms":20,"function-bind":23,gopd:26,"has-symbols":27,hasown:29,"math-intrinsics/abs":33,"math-intrinsics/floor":34,"math-intrinsics/max":35,"math-intrinsics/min":36,"math-intrinsics/pow":37}],25:[function(e,i,t){"use strict";i.exports=Object.getOwnPropertyDescriptor},{}],26:[function(e,i,t){"use strict";var n=e("./gOPD");if(n)try{n([],"length")}catch(e){n=null}i.exports=n},{"./gOPD":25}],27:[function(e,i,t){"use strict";var n="undefined"!=typeof Symbol&&Symbol,a=e("./shams");i.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&a())))}},{"./shams":28}],28:[function(e,i,t){"use strict";i.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},i=Symbol("test"),t=Object(i);if("string"==typeof i)return!1;if("[object Symbol]"!==Object.prototype.toString.call(i))return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;for(var n in e[i]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var a=Object.getOwnPropertySymbols(e);if(1!==a.length||a[0]!==i)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,i);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},{}],29:[function(e,i,t){"use strict";var n=Function.prototype.call,a=Object.prototype.hasOwnProperty,o=e("function-bind");i.exports=o.call(n,a)},{"function-bind":23}],30:[function(e,i,t){var n=e("http"),a=e("url"),o=i.exports;for(var r in n)n.hasOwnProperty(r)&&(o[r]=n[r]);function l(e){if("string"==typeof e&&(e=a.parse(e)),e.protocol||(e.protocol="https:"),"https:"!==e.protocol)throw new Error('Protocol "'+e.protocol+'" not supported. Expected "https:"');return e}o.request=function(e,i){return e=l(e),n.request.call(this,e,i)},o.get=function(e,i){return e=l(e),n.get.call(this,e,i)}},{http:53,url:74}],31:[function(e,i,t){t.read=function(e,i,t,n,a){var o,r,l=8*a-n-1,s=(1<>1,p=-7,c=t?a-1:0,d=t?-1:1,g=e[i+c];for(c+=d,o=g&(1<<-p)-1,g>>=-p,p+=l;p>0;o=256*o+e[i+c],c+=d,p-=8);for(r=o&(1<<-p)-1,o>>=-p,p+=n;p>0;r=256*r+e[i+c],c+=d,p-=8);if(0===o)o=1-u;else{if(o===s)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,n),o-=u}return(g?-1:1)*r*Math.pow(2,o-n)},t.write=function(e,i,t,n,a,o){var r,l,s,u=8*o-a-1,p=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,h=n?1:-1,m=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,r=p):(r=Math.floor(Math.log(i)/Math.LN2),i*(s=Math.pow(2,-r))<1&&(r--,s*=2),(i+=r+c>=1?d/s:d*Math.pow(2,1-c))*s>=2&&(r++,s/=2),r+c>=p?(l=0,r=p):r+c>=1?(l=(i*s-1)*Math.pow(2,a),r+=c):(l=i*Math.pow(2,c-1)*Math.pow(2,a),r=0));a>=8;e[t+g]=255&l,g+=h,l/=256,a-=8);for(r=r<0;e[t+g]=255&r,g+=h,r/=256,u-=8);e[t+g-h]|=128*m}},{}],32:[function(e,i,t){"function"==typeof Object.create?i.exports=function(e,i){i&&(e.super_=i,e.prototype=Object.create(i.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:i.exports=function(e,i){if(i){e.super_=i;var t=function(){};t.prototype=i.prototype,e.prototype=new t,e.prototype.constructor=e}}},{}],33:[function(e,i,t){"use strict";i.exports=Math.abs},{}],34:[function(e,i,t){"use strict";i.exports=Math.floor},{}],35:[function(e,i,t){"use strict";i.exports=Math.max},{}],36:[function(e,i,t){"use strict";i.exports=Math.min},{}],37:[function(e,i,t){"use strict";i.exports=Math.pow},{}],38:[function(e,i,t){(function(t){(function(){var n="function"==typeof Map&&Map.prototype,a=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=n&&a&&"function"==typeof a.get?a.get:null,r=n&&Map.prototype.forEach,l="function"==typeof Set&&Set.prototype,s=Object.getOwnPropertyDescriptor&&l?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=l&&s&&"function"==typeof s.get?s.get:null,p=l&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,g="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,h=Boolean.prototype.valueOf,m=Object.prototype.toString,f=Function.prototype.toString,v=String.prototype.match,w=String.prototype.slice,y=String.prototype.replace,C=String.prototype.toUpperCase,I=String.prototype.toLowerCase,b=RegExp.prototype.test,A=Array.prototype.concat,k=Array.prototype.join,j=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,q="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===S||"symbol")?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function U(e,i){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,i))return i;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var a=String(n),o=w.call(i,a.length+1);return y.call(a,t,"$&_")+"."+y.call(y.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return y.call(i,t,"$&_")}var G=e("./util.inspect"),x=G.custom,D=K(x)?x:null,W={__proto__:null,double:'"',single:"'"},B={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function z(e,i,t){var n=t.quoteStyle||i,a=W[n];return a+e+a}function L(e){return y.call(String(e),/"/g,""")}function _(e){return!("[object Array]"!==V(e)||q&&"object"==typeof e&&q in e)}function N(e){return!("[object RegExp]"!==V(e)||q&&"object"==typeof e&&q in e)}function K(e){if(S)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}i.exports=function e(i,n,a,l){var s=n||{};if(J(s,"quoteStyle")&&!J(W,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(J(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var m=!J(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(J(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(J(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var C=s.numericSeparator;if(void 0===i)return"undefined";if(null===i)return"null";if("boolean"==typeof i)return i?"true":"false";if("string"==typeof i)return function e(i,t){if(i.length>t.maxStringLength){var n=i.length-t.maxStringLength,a="... "+n+" more character"+(n>1?"s":"");return e(w.call(i,0,t.maxStringLength),t)+a}var o=B[t.quoteStyle||"single"];o.lastIndex=0;var r=y.call(y.call(i,o,"\\$1"),/[\x00-\x1f]/g,H);return z(r,"single",t)}(i,s);if("number"==typeof i){if(0===i)return 1/0/i>0?"0":"-0";var b=String(i);return C?U(i,b):b}if("bigint"==typeof i){var P=String(i)+"n";return C?U(i,P):P}var T=void 0===s.depth?5:s.depth;if(void 0===a&&(a=0),a>=T&&T>0&&"object"==typeof i)return _(i)?"[Array]":"[Object]";var x=function(e,i){var t;if("\t"===e.indent)t="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;t=k.call(Array(e.indent+1)," ")}return{base:t,prev:k.call(Array(i+1),t)}}(s,a);if(void 0===l)l=[];else if(Q(l,i)>=0)return"[Circular]";function F(i,t,n){if(t&&(l=j.call(l)).push(t),n){var o={depth:s.depth};return J(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(i,o,a+1,l)}return e(i,s,a+1,l)}if("function"==typeof i&&!N(i)){var ie=function(e){if(e.name)return e.name;var i=v.call(f.call(e),/^function\s*([\w$]+)/);if(i)return i[1];return null}(i),te=ee(i,F);return"[Function"+(ie?": "+ie:" (anonymous)")+"]"+(te.length>0?" { "+k.call(te,", ")+" }":"")}if(K(i)){var ne=S?y.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):M.call(i);return"object"!=typeof i||S?ne:Y(ne)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(i)){for(var ae="<"+I.call(String(i.nodeName)),oe=i.attributes||[],re=0;re",i.childNodes&&i.childNodes.length&&(ae+="..."),ae+=""+I.call(String(i.nodeName))+">"}if(_(i)){if(0===i.length)return"[]";var le=ee(i,F);return x&&!function(e){for(var i=0;i=0)return!1;return!0}(le)?"["+Z(le,x)+"]":"[ "+k.call(le,", ")+" ]"}if(function(e){return!("[object Error]"!==V(e)||q&&"object"==typeof e&&q in e)}(i)){var se=ee(i,F);return"cause"in Error.prototype||!("cause"in i)||E.call(i,"cause")?0===se.length?"["+String(i)+"]":"{ ["+String(i)+"] "+k.call(se,", ")+" }":"{ ["+String(i)+"] "+k.call(A.call("[cause]: "+F(i.cause),se),", ")+" }"}if("object"==typeof i&&m){if(D&&"function"==typeof i[D]&&G)return G(i,{depth:T-a});if("symbol"!==m&&"function"==typeof i.inspect)return i.inspect()}if(function(e){if(!o||!e||"object"!=typeof e)return!1;try{o.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(i)){var ue=[];return r&&r.call(i,function(e,t){ue.push(F(t,i,!0)+" => "+F(e,i))}),X("Map",o.call(i),ue,x)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{o.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(i)){var pe=[];return p&&p.call(i,function(e){pe.push(F(e,i))}),X("Set",u.call(i),pe,x)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(i))return $("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(i))return $("WeakSet");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{return g.call(e),!0}catch(e){}return!1}(i))return $("WeakRef");if(function(e){return!("[object Number]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(F(Number(i)));if(function(e){if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}(i))return Y(F(O.call(i)));if(function(e){return!("[object Boolean]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(h.call(i));if(function(e){return!("[object String]"!==V(e)||q&&"object"==typeof e&&q in e)}(i))return Y(F(String(i)));if("undefined"!=typeof window&&i===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&i===globalThis||void 0!==t&&i===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==V(e)||q&&"object"==typeof e&&q in e)}(i)&&!N(i)){var ce=ee(i,F),de=R?R(i)===Object.prototype:i instanceof Object||i.constructor===Object,ge=i instanceof Object?"":"null prototype",he=!de&&q&&Object(i)===i&&q in i?w.call(V(i),8,-1):ge?"Object":"",me=(de||"function"!=typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"")+(he||ge?"["+k.call(A.call([],he||[],ge||[]),": ")+"] ":"");return 0===ce.length?me+"{}":x?me+"{"+Z(ce,x)+"}":me+"{ "+k.call(ce,", ")+" }"}return String(i)};var F=Object.prototype.hasOwnProperty||function(e){return e in this};function J(e,i){return F.call(e,i)}function V(e){return m.call(e)}function Q(e,i){if(e.indexOf)return e.indexOf(i);for(var t=0,n=e.length;t2){var s=n.lastIndexOf("/");if(s!==n.length-1){-1===s?(n="",a=0):a=(n=n.slice(0,s)).length-1-n.lastIndexOf("/"),o=l,r=0;continue}}else if(2===n.length||1===n.length){n="",a=0,o=l,r=0;continue}i&&(n.length>0?n+="/..":n="..",a=2)}else n.length>0?n+="/"+e.slice(o+1,l):n=e.slice(o+1,l),a=l-o-1;o=l,r=0}else 46===t&&-1!==r?++r:r=-1}return n}var a={resolve:function(){for(var i,a="",o=!1,r=arguments.length-1;r>=-1&&!o;r--){var l;r>=0?l=arguments[r]:(void 0===i&&(i=e.cwd()),l=i),t(l),0!==l.length&&(a=l+"/"+a,o=47===l.charCodeAt(0))}return a=n(a,!o),o?a.length>0?"/"+a:"/":a.length>0?a:"."},normalize:function(e){if(t(e),0===e.length)return".";var i=47===e.charCodeAt(0),a=47===e.charCodeAt(e.length-1);return 0!==(e=n(e,!i)).length||i||(e="."),e.length>0&&a&&(e+="/"),i?"/"+e:e},isAbsolute:function(e){return t(e),e.length>0&&47===e.charCodeAt(0)},join:function(){if(0===arguments.length)return".";for(var e,i=0;i0&&(void 0===e?e=n:e+="/"+n)}return void 0===e?".":a.normalize(e)},relative:function(e,i){if(t(e),t(i),e===i)return"";if((e=a.resolve(e))===(i=a.resolve(i)))return"";for(var n=1;nu){if(47===i.charCodeAt(l+c))return i.slice(l+c+1);if(0===c)return i.slice(l+c)}else r>u&&(47===e.charCodeAt(n+c)?p=c:0===c&&(p=0));break}var d=e.charCodeAt(n+c);if(d!==i.charCodeAt(l+c))break;47===d&&(p=c)}var g="";for(c=n+p+1;c<=o;++c)c!==o&&47!==e.charCodeAt(c)||(0===g.length?g+="..":g+="/..");return g.length>0?g+i.slice(l+p):(l+=p,47===i.charCodeAt(l)&&++l,i.slice(l))},_makeLong:function(e){return e},dirname:function(e){if(t(e),0===e.length)return".";for(var i=e.charCodeAt(0),n=47===i,a=-1,o=!0,r=e.length-1;r>=1;--r)if(47===(i=e.charCodeAt(r))){if(!o){a=r;break}}else o=!1;return-1===a?n?"/":".":n&&1===a?"//":e.slice(0,a)},basename:function(e,i){if(void 0!==i&&"string"!=typeof i)throw new TypeError('"ext" argument must be a string');t(e);var n,a=0,o=-1,r=!0;if(void 0!==i&&i.length>0&&i.length<=e.length){if(i.length===e.length&&i===e)return"";var l=i.length-1,s=-1;for(n=e.length-1;n>=0;--n){var u=e.charCodeAt(n);if(47===u){if(!r){a=n+1;break}}else-1===s&&(r=!1,s=n+1),l>=0&&(u===i.charCodeAt(l)?-1==--l&&(o=n):(l=-1,o=s))}return a===o?o=s:-1===o&&(o=e.length),e.slice(a,o)}for(n=e.length-1;n>=0;--n)if(47===e.charCodeAt(n)){if(!r){a=n+1;break}}else-1===o&&(r=!1,o=n+1);return-1===o?"":e.slice(a,o)},extname:function(e){t(e);for(var i=-1,n=0,a=-1,o=!0,r=0,l=e.length-1;l>=0;--l){var s=e.charCodeAt(l);if(47!==s)-1===a&&(o=!1,a=l+1),46===s?-1===i?i=l:1!==r&&(r=1):-1!==i&&(r=-1);else if(!o){n=l+1;break}}return-1===i||-1===a||0===r||1===r&&i===a-1&&i===n+1?"":e.slice(i,a)},format:function(e){if(null===e||"object"!=typeof e)throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return function(e,i){var t=i.dir||i.root,n=i.base||(i.name||"")+(i.ext||"");return t?t===i.root?t+n:t+e+n:n}("/",e)},parse:function(e){t(e);var i={root:"",dir:"",base:"",ext:"",name:""};if(0===e.length)return i;var n,a=e.charCodeAt(0),o=47===a;o?(i.root="/",n=1):n=0;for(var r=-1,l=0,s=-1,u=!0,p=e.length-1,c=0;p>=n;--p)if(47!==(a=e.charCodeAt(p)))-1===s&&(u=!1,s=p+1),46===a?-1===r?r=p:1!==c&&(c=1):-1!==r&&(c=-1);else if(!u){l=p+1;break}return-1===r||-1===s||0===c||1===c&&r===s-1&&r===l+1?-1!==s&&(i.base=i.name=0===l&&o?e.slice(1,s):e.slice(l,s)):(0===l&&o?(i.name=e.slice(1,r),i.base=e.slice(1,s)):(i.name=e.slice(l,r),i.base=e.slice(l,s)),i.ext=e.slice(r,s)),l>0?i.dir=e.slice(0,l-1):o&&(i.dir="/"),i},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a,i.exports=a}).call(this)}).call(this,e("_process"))},{_process:41}],41:[function(e,i,t){var n,a,o=i.exports={};function r(){throw new Error("setTimeout has not been defined")}function l(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(i){try{return n.call(null,e,0)}catch(i){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{a="function"==typeof clearTimeout?clearTimeout:l}catch(e){a=l}}();var u,p=[],c=!1,d=-1;function g(){c&&u&&(c=!1,u.length?p=u.concat(p):d=-1,p.length&&h())}function h(){if(!c){var e=s(g);c=!0;for(var i=p.length;i;){for(u=p,p=[];++d1)for(var t=1;t= 0x80 (not a basic code point)","invalid-input":"Invalid input"},b=p-c,A=Math.floor,k=String.fromCharCode;function j(e){throw new RangeError(I[e])}function P(e,i){for(var t=e.length,n=[];t--;)n[t]=i(e[t]);return n}function O(e,i){var t=e.split("@"),n="";return t.length>1&&(n=t[0]+"@",e=t[1]),n+P((e=e.replace(C,".")).split("."),i).join(".")}function T(e){for(var i,t,n=[],a=0,o=e.length;a=55296&&i<=56319&&a65535&&(i+=k((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=k(e)}).join("")}function S(e,i){return e+22+75*(e<26)-((0!=i)<<5)}function q(e,i,t){var n=0;for(e=t?A(e/h):e>>1,e+=A(e/i);e>b*d>>1;n+=p)e=A(e/b);return A(n+(b+1)*e/(e+g))}function E(e){var i,t,n,a,o,r,l,s,g,h,w,y=[],C=e.length,I=0,b=f,k=m;for((t=e.lastIndexOf(v))<0&&(t=0),n=0;n=128&&j("not-basic"),y.push(e.charCodeAt(n));for(a=t>0?t+1:0;a=C&&j("invalid-input"),((s=(w=e.charCodeAt(a++))-48<10?w-22:w-65<26?w-65:w-97<26?w-97:p)>=p||s>A((u-I)/r))&&j("overflow"),I+=s*r,!(s<(g=l<=k?c:l>=k+d?d:l-k));l+=p)r>A(u/(h=p-g))&&j("overflow"),r*=h;k=q(I-o,i=y.length+1,0==o),A(I/i)>u-b&&j("overflow"),b+=A(I/i),I%=i,y.splice(I++,0,b)}return M(y)}function R(e){var i,t,n,a,o,r,l,s,g,h,w,y,C,I,b,P=[];for(y=(e=T(e)).length,i=f,t=0,o=m,r=0;r=i&&wA((u-t)/(C=n+1))&&j("overflow"),t+=(l-i)*C,i=l,r=0;ru&&j("overflow"),w==i){for(s=t,g=p;!(s<(h=g<=o?c:g>=o+d?d:g-o));g+=p)b=s-h,I=p-h,P.push(k(S(h+b%I,0))),s=A(b/I);P.push(k(S(s,0))),o=q(t,C,n==a),t=0,++n}++t,++i}return P.join("")}if(l={version:"1.4.1",ucs2:{decode:T,encode:M},decode:E,encode:R,toASCII:function(e){return O(e,function(e){return y.test(e)?"xn--"+R(e):e})},toUnicode:function(e){return O(e,function(e){return w.test(e)?E(e.slice(4).toLowerCase()):e})}},"function"==typeof define&&"object"==typeof define.amd&&define.amd)define("punycode",function(){return l});else if(a&&o)if(i.exports==a)o.exports=l;else for(s in l)l.hasOwnProperty(s)&&(a[s]=l[s]);else n.punycode=l}(this)}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],43:[function(e,i,t){"use strict";var n=String.prototype.replace,a=/%20/g,o="RFC1738",r="RFC3986";i.exports={default:r,formatters:{RFC1738:function(e){return n.call(e,a,"+")},RFC3986:function(e){return String(e)}},RFC1738:o,RFC3986:r}},{}],44:[function(e,i,t){"use strict";var n=e("./stringify"),a=e("./parse"),o=e("./formats");i.exports={formats:o,parse:a,stringify:n}},{"./formats":43,"./parse":45,"./stringify":46}],45:[function(e,i,t){"use strict";var n=e("./utils"),a=Object.prototype.hasOwnProperty,o=Array.isArray,r={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1},l=function(e){return e.replace(/(\d+);/g,function(e,i){return String.fromCharCode(parseInt(i,10))})},s=function(e,i){return e&&"string"==typeof e&&i.comma&&e.indexOf(",")>-1?e.split(","):e},u=function(e,i,t,n){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,r=/(\[[^[\]]*])/g,l=t.depth>0&&/(\[[^[\]]*])/.exec(o),u=l?o.slice(0,l.index):o,p=[];if(u){if(!t.plainObjects&&a.call(Object.prototype,u)&&!t.allowPrototypes)return;p.push(u)}for(var c=0;t.depth>0&&null!==(l=r.exec(o))&&c=0;--o){var r,l=e[o];if("[]"===l&&t.parseArrays)r=t.allowEmptyArrays&&(""===a||t.strictNullHandling&&null===a)?[]:[].concat(a);else{r=t.plainObjects?{__proto__:null}:{};var u="["===l.charAt(0)&&"]"===l.charAt(l.length-1)?l.slice(1,-1):l,p=t.decodeDotInKeys?u.replace(/%2E/g,"."):u,c=parseInt(p,10);t.parseArrays||""!==p?!isNaN(c)&&l!==p&&String(c)===p&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(r=[])[c]=a:"__proto__"!==p&&(r[p]=a):r={0:a}}a=r}return a}(p,i,t,n)}};i.exports=function(e,i){var t=function(e){if(!e)return r;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=void 0===e.charset?r.charset:e.charset,t=void 0===e.duplicates?r.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw new TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||r.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:r.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:r.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:r.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:r.arrayLimit,charset:i,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:r.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:r.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:r.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:r.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:r.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:r.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:r.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:r.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:r.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:r.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(i);if(""===e||null===e||void 0===e)return t.plainObjects?{__proto__:null}:{};for(var p="string"==typeof e?function(e,i){var t={__proto__:null},u=i.ignoreQueryPrefix?e.replace(/^\?/,""):e;u=u.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var p,c=i.parameterLimit===1/0?void 0:i.parameterLimit,d=u.split(i.delimiter,c),g=-1,h=i.charset;if(i.charsetSentinel)for(p=0;p-1&&(f=o(f)?[f]:f);var C=a.call(t,m);C&&"combine"===i.duplicates?t[m]=n.combine(t[m],f):C&&"last"!==i.duplicates||(t[m]=f)}return t}(e,t):e,c=t.plainObjects?{__proto__:null}:{},d=Object.keys(p),g=0;g0?P.join(",")||null:void 0}];else if(s(f))q=f;else{var R=Object.keys(P);q=v?R.sort(v):R}var U=d?String(t).replace(/\./g,"%2E"):String(t),G=r&&s(P)&&1===P.length?U+"[]":U;if(l&&s(P)&&0===P.length)return G+"[]";for(var x=0;x0?I+C:""}},{"./formats":43,"./utils":47,"side-channel":52}],47:[function(e,i,t){"use strict";var n=e("./formats"),a=Object.prototype.hasOwnProperty,o=Array.isArray,r=function(){for(var e=[],i=0;i<256;++i)e.push("%"+((i<16?"0":"")+i.toString(16)).toUpperCase());return e}(),l=function(e,i){for(var t=i&&i.plainObjects?{__proto__:null}:{},n=0;n1;){var i=e.pop(),t=i.obj[i.prop];if(o(t)){for(var n=[],a=0;a=1024?l.slice(u,u+1024):l,c=[],d=0;d=48&&g<=57||g>=65&&g<=90||g>=97&&g<=122||o===n.RFC1738&&(40===g||41===g)?c[c.length]=p.charAt(d):g<128?c[c.length]=r[g]:g<2048?c[c.length]=r[192|g>>6]+r[128|63&g]:g<55296||g>=57344?c[c.length]=r[224|g>>12]+r[128|g>>6&63]+r[128|63&g]:(d+=1,g=65536+((1023&g)<<10|1023&p.charCodeAt(d)),c[c.length]=r[240|g>>18]+r[128|g>>12&63]+r[128|g>>6&63]+r[128|63&g])}s+=c.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,i){if(o(e)){for(var t=[],n=0;ni._pos){var r=o.substr(i._pos);if("x-user-defined"===i._charset){for(var l=a.alloc(r.length),u=0;ui._pos&&(i.push(a.from(new Uint8Array(p.result.slice(i._pos)))),i._pos=p.result.byteLength)},p.onload=function(){e(!0),i.push(null)},p.readAsArrayBuffer(o)}i._xhr.readyState===s.DONE&&"ms-stream"!==i._mode&&(e(!0),i.push(null))}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer)},{"./capability":54,_process:41,buffer:3,inherits:32,"readable-stream":71}],57:[function(e,i,t){"use strict";var n={};function a(e,i,t){t||(t=Error);var a=function(e){var t,n;function a(t,n,a){return e.call(this,function(e,t,n){return"string"==typeof i?i:i(e,t,n)}(t,n,a))||this}return n=e,(t=a).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n,a}(t);a.prototype.name=t.name,a.prototype.code=e,n[e]=a}function o(e,i){if(Array.isArray(e)){var t=e.length;return e=e.map(function(e){return String(e)}),t>2?"one of ".concat(i," ").concat(e.slice(0,t-1).join(", "),", or ")+e[t-1]:2===t?"one of ".concat(i," ").concat(e[0]," or ").concat(e[1]):"of ".concat(i," ").concat(e[0])}return"of ".concat(i," ").concat(String(e))}a("ERR_INVALID_OPT_VALUE",function(e,i){return'The value "'+i+'" is invalid for option "'+e+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(e,i,t){var n,a,r,l;if("string"==typeof i&&(a="not ",i.substr(!r||r<0?0:+r,a.length)===a)?(n="must not be",i=i.replace(/^not /,"")):n="must be",function(e,i,t){return(void 0===t||t>e.length)&&(t=e.length),e.substring(t-i.length,t)===i}(e," argument"))l="The ".concat(e," ").concat(n," ").concat(o(i,"type"));else{var s=function(e,i,t){return"number"!=typeof t&&(t=0),!(t+i.length>e.length)&&-1!==e.indexOf(i,t)}(e,".")?"property":"argument";l='The "'.concat(e,'" ').concat(s," ").concat(n," ").concat(o(i,"type"))}return l+=". Received type ".concat(typeof t)},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),i.exports.codes=n},{}],58:[function(e,i,t){(function(t){(function(){"use strict";var n=Object.keys||function(e){var i=[];for(var t in e)i.push(t);return i};i.exports=u;var a=e("./_stream_readable"),o=e("./_stream_writable");e("inherits")(u,a);for(var r=n(o.prototype),l=0;l0)if("string"==typeof i||r.objectMode||Object.getPrototypeOf(i)===l.prototype||(i=function(e){return l.from(e)}(i)),n)r.endEmitted?b(e,new I):O(e,r,i,!0);else if(r.ended)b(e,new y);else{if(r.destroyed)return!1;r.reading=!1,r.decoder&&!t?(i=r.decoder.write(i),r.objectMode||0!==i.length?O(e,r,i,!1):E(e,r)):O(e,r,i,!1)}else n||(r.reading=!1,E(e,r));return!r.ended&&(r.lengthi.highWaterMark&&(i.highWaterMark=function(e){return e>=T?e=T:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=i.length?e:i.ended?i.length:(i.needReadable=!0,0))}function S(e){var i=e._readableState;u("emitReadable",i.needReadable,i.emittedReadable),i.needReadable=!1,i.emittedReadable||(u("emitReadable",i.flowing),i.emittedReadable=!0,t.nextTick(q,e))}function q(e){var i=e._readableState;u("emitReadable_",i.destroyed,i.length,i.ended),i.destroyed||!i.length&&!i.ended||(e.emit("readable"),i.emittedReadable=!1),i.needReadable=!i.flowing&&!i.ended&&i.length<=i.highWaterMark,D(e)}function E(e,i){i.readingMore||(i.readingMore=!0,t.nextTick(R,e,i))}function R(e,i){for(;!i.reading&&!i.ended&&(i.length0,i.resumeScheduled&&!i.paused?i.flowing=!0:e.listenerCount("data")>0&&e.resume()}function G(e){u("readable nexttick read 0"),e.read(0)}function x(e,i){u("resume",i.reading),i.reading||e.read(0),i.resumeScheduled=!1,e.emit("resume"),D(e),i.flowing&&!i.reading&&e.read(0)}function D(e){var i=e._readableState;for(u("flow",i.flowing);i.flowing&&null!==e.read(););}function W(e,i){return 0===i.length?null:(i.objectMode?t=i.buffer.shift():!e||e>=i.length?(t=i.decoder?i.buffer.join(""):1===i.buffer.length?i.buffer.first():i.buffer.concat(i.length),i.buffer.clear()):t=i.buffer.consume(e,i.decoder),t);var t}function B(e){var i=e._readableState;u("endReadable",i.endEmitted),i.endEmitted||(i.ended=!0,t.nextTick(z,i,e))}function z(e,i){if(u("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,i.readable=!1,i.emit("end"),e.autoDestroy)){var t=i._writableState;(!t||t.autoDestroy&&t.finished)&&i.destroy()}}function L(e,i){for(var t=0,n=e.length;t=i.highWaterMark:i.length>0)||i.ended))return u("read: emitReadable",i.length,i.ended),0===i.length&&i.ended?B(this):S(this),null;if(0===(e=M(e,i))&&i.ended)return 0===i.length&&B(this),null;var n,a=i.needReadable;return u("need readable",a),(0===i.length||i.length-e0?W(e,i):null)?(i.needReadable=i.length<=i.highWaterMark,e=0):(i.length-=e,i.awaitDrain=0),0===i.length&&(i.ended||(i.needReadable=!0),t!==e&&i.ended&&B(this)),null!==n&&this.emit("data",n),n},j.prototype._read=function(e){b(this,new C("_read()"))},j.prototype.pipe=function(e,i){var n=this,a=this._readableState;switch(a.pipesCount){case 0:a.pipes=e;break;case 1:a.pipes=[a.pipes,e];break;default:a.pipes.push(e)}a.pipesCount+=1,u("pipe count=%d opts=%j",a.pipesCount,i);var r=(!i||!1!==i.end)&&e!==t.stdout&&e!==t.stderr?s:f;function l(i,t){u("onunpipe"),i===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,u("cleanup"),e.removeListener("close",h),e.removeListener("finish",m),e.removeListener("drain",p),e.removeListener("error",g),e.removeListener("unpipe",l),n.removeListener("end",s),n.removeListener("end",f),n.removeListener("data",d),c=!0,!a.awaitDrain||e._writableState&&!e._writableState.needDrain||p())}function s(){u("onend"),e.end()}a.endEmitted?t.nextTick(r):n.once("end",r),e.on("unpipe",l);var p=function(e){return function(){var i=e._readableState;u("pipeOnDrain",i.awaitDrain),i.awaitDrain&&i.awaitDrain--,0===i.awaitDrain&&o(e,"data")&&(i.flowing=!0,D(e))}}(n);e.on("drain",p);var c=!1;function d(i){u("ondata");var t=e.write(i);u("dest.write",t),!1===t&&((1===a.pipesCount&&a.pipes===e||a.pipesCount>1&&-1!==L(a.pipes,e))&&!c&&(u("false write response, pause",a.awaitDrain),a.awaitDrain++),n.pause())}function g(i){u("onerror",i),f(),e.removeListener("error",g),0===o(e,"error")&&b(e,i)}function h(){e.removeListener("finish",m),f()}function m(){u("onfinish"),e.removeListener("close",h),f()}function f(){u("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,i,t){if("function"==typeof e.prependListener)return e.prependListener(i,t);e._events&&e._events[i]?Array.isArray(e._events[i])?e._events[i].unshift(t):e._events[i]=[t,e._events[i]]:e.on(i,t)}(e,"error",g),e.once("close",h),e.once("finish",m),e.emit("pipe",n),a.flowing||(u("pipe resume"),n.resume()),e},j.prototype.unpipe=function(e){var i=this._readableState,t={hasUnpiped:!1};if(0===i.pipesCount)return this;if(1===i.pipesCount)return e&&e!==i.pipes?this:(e||(e=i.pipes),i.pipes=null,i.pipesCount=0,i.flowing=!1,e&&e.emit("unpipe",this,t),this);if(!e){var n=i.pipes,a=i.pipesCount;i.pipes=null,i.pipesCount=0,i.flowing=!1;for(var o=0;o0,!1!==a.flowing&&this.resume()):"readable"===e&&(a.endEmitted||a.readableListening||(a.readableListening=a.needReadable=!0,a.flowing=!1,a.emittedReadable=!1,u("on readable",a.length,a.reading),a.length?S(this):a.reading||t.nextTick(G,this))),n},j.prototype.addListener=j.prototype.on,j.prototype.removeListener=function(e,i){var n=r.prototype.removeListener.call(this,e,i);return"readable"===e&&t.nextTick(U,this),n},j.prototype.removeAllListeners=function(e){var i=r.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||t.nextTick(U,this),i},j.prototype.resume=function(){var e=this._readableState;return e.flowing||(u("resume"),e.flowing=!e.readableListening,function(e,i){i.resumeScheduled||(i.resumeScheduled=!0,t.nextTick(x,e,i))}(this,e)),e.paused=!1,this},j.prototype.pause=function(){return u("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(u("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},j.prototype.wrap=function(e){var i=this,t=this._readableState,n=!1;for(var a in e.on("end",function(){if(u("wrapped end"),t.decoder&&!t.ended){var e=t.decoder.end();e&&e.length&&i.push(e)}i.push(null)}),e.on("data",function(a){(u("wrapped data"),t.decoder&&(a=t.decoder.write(a)),!t.objectMode||null!==a&&void 0!==a)&&((t.objectMode||a&&a.length)&&(i.push(a)||(n=!0,e.pause())))}),e)void 0===this[a]&&"function"==typeof e[a]&&(this[a]=function(i){return function(){return e[i].apply(e,arguments)}}(a));for(var o=0;o-1))throw new I(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(j.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(j.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),j.prototype._write=function(e,i,t){t(new m("_write()"))},j.prototype._writev=null,j.prototype.end=function(e,i,n){var a=this._writableState;return"function"==typeof e?(n=e,e=null,i=null):"function"==typeof i&&(n=i,i=null),null!==e&&void 0!==e&&this.write(e,i),a.corked&&(a.corked=1,this.uncork()),a.ending||function(e,i,n){i.ending=!0,q(e,i),n&&(i.finished?t.nextTick(n):e.once("finish",n));i.ended=!0,e.writable=!1}(this,a,n),this},Object.defineProperty(j.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(j.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),j.prototype.destroy=c.destroy,j.prototype._undestroy=c.undestroy,j.prototype._destroy=function(e,i){i(e)}}).call(this)}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../errors":57,"./_stream_duplex":58,"./internal/streams/destroy":65,"./internal/streams/state":69,"./internal/streams/stream":70,_process:41,buffer:3,inherits:32,"util-deprecate":75}],63:[function(e,i,t){(function(t){(function(){"use strict";var n;function a(e,i,t){return(i=function(e){var i=function(e,i){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,i||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(e)}(e,"string");return"symbol"==typeof i?i:String(i)}(i))in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}var o=e("./end-of-stream"),r=Symbol("lastResolve"),l=Symbol("lastReject"),s=Symbol("error"),u=Symbol("ended"),p=Symbol("lastPromise"),c=Symbol("handlePromise"),d=Symbol("stream");function g(e,i){return{value:e,done:i}}function h(e){var i=e[r];if(null!==i){var t=e[d].read();null!==t&&(e[p]=null,e[r]=null,e[l]=null,i(g(t,!1)))}}var m=Object.getPrototypeOf(function(){}),f=Object.setPrototypeOf((a(n={get stream(){return this[d]},next:function(){var e=this,i=this[s];if(null!==i)return Promise.reject(i);if(this[u])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise(function(i,n){t.nextTick(function(){e[s]?n(e[s]):i(g(void 0,!0))})});var n,a=this[p];if(a)n=new Promise(function(e,i){return function(t,n){e.then(function(){i[u]?t(g(void 0,!0)):i[c](t,n)},n)}}(a,this));else{var o=this[d].read();if(null!==o)return Promise.resolve(g(o,!1));n=new Promise(this[c])}return this[p]=n,n}},Symbol.asyncIterator,function(){return this}),a(n,"return",function(){var e=this;return new Promise(function(i,t){e[d].destroy(null,function(e){e?t(e):i(g(void 0,!0))})})}),n),m);i.exports=function(e){var i,n=Object.create(f,(a(i={},d,{value:e,writable:!0}),a(i,r,{value:null,writable:!0}),a(i,l,{value:null,writable:!0}),a(i,s,{value:null,writable:!0}),a(i,u,{value:e._readableState.endEmitted,writable:!0}),a(i,c,{value:function(e,i){var t=n[d].read();t?(n[p]=null,n[r]=null,n[l]=null,e(g(t,!1))):(n[r]=e,n[l]=i)},writable:!0}),i));return n[p]=null,o(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var i=n[l];return null!==i&&(n[p]=null,n[r]=null,n[l]=null,i(e)),void(n[s]=e)}var t=n[r];null!==t&&(n[p]=null,n[r]=null,n[l]=null,t(g(void 0,!0))),n[u]=!0}),e.on("readable",function(e){t.nextTick(h,e)}.bind(null,n)),n}}).call(this)}).call(this,e("_process"))},{"./end-of-stream":66,_process:41}],64:[function(e,i,t){"use strict";function n(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function a(e){for(var i=1;i0?this.tail.next=i:this.head=i,this.tail=i,++this.length}},{key:"unshift",value:function(e){var i={data:e,next:this.head};0===this.length&&(this.tail=i),this.head=i,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var i=this.head,t=""+i.data;i=i.next;)t+=e+i.data;return t}},{key:"concat",value:function(e){if(0===this.length)return s.alloc(0);for(var i,t,n,a=s.allocUnsafe(e>>>0),o=this.head,r=0;o;)i=o.data,t=a,n=r,s.prototype.copy.call(i,t,n),r+=o.data.length,o=o.next;return a}},{key:"consume",value:function(e,i){var t;return ea.length?a.length:e;if(o===a.length?n+=a:n+=a.slice(0,e),0===(e-=o)){o===a.length?(++t,i.next?this.head=i.next:this.head=this.tail=null):(this.head=i,i.data=a.slice(o));break}++t}return this.length-=t,n}},{key:"_getBuffer",value:function(e){var i=s.allocUnsafe(e),t=this.head,n=1;for(t.data.copy(i),e-=t.data.length;t=t.next;){var a=t.data,o=e>a.length?a.length:e;if(a.copy(i,i.length-e,0,o),0===(e-=o)){o===a.length?(++n,t.next?this.head=t.next:this.head=this.tail=null):(this.head=t,t.data=a.slice(o));break}++n}return this.length-=n,i}},{key:p,value:function(e,i){return u(this,a(a({},i),{},{depth:0,customInspect:!1}))}}])&&r(i.prototype,t),n&&r(i,n),Object.defineProperty(i,"prototype",{writable:!1}),e}()},{buffer:3,util:2}],65:[function(e,i,t){(function(e){(function(){"use strict";function t(e,i){a(e,i),n(e)}function n(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function a(e,i){e.emit("error",i)}i.exports={destroy:function(i,o){var r=this,l=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return l||s?(o?o(i):i&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,e.nextTick(a,this,i)):e.nextTick(a,this,i)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(i||null,function(i){!o&&i?r._writableState?r._writableState.errorEmitted?e.nextTick(n,r):(r._writableState.errorEmitted=!0,e.nextTick(t,r,i)):e.nextTick(t,r,i):o?(e.nextTick(n,r),o(i)):e.nextTick(n,r)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,i){var t=e._readableState,n=e._writableState;t&&t.autoDestroy||n&&n.autoDestroy?e.destroy(i):e.emit("error",i)}}}).call(this)}).call(this,e("_process"))},{_process:41}],66:[function(e,i,t){"use strict";var n=e("../../../errors").codes.ERR_STREAM_PREMATURE_CLOSE;function a(){}i.exports=function e(i,t,o){if("function"==typeof t)return e(i,null,t);t||(t={}),o=function(e){var i=!1;return function(){if(!i){i=!0;for(var t=arguments.length,n=new Array(t),a=0;a0,function(e){p||(p=e),e&&d.forEach(s),o||(d.forEach(s),c(p))})});return t.reduce(u)}},{"../../../errors":57,"./end-of-stream":66}],69:[function(e,i,t){"use strict";var n=e("../../../errors").codes.ERR_INVALID_OPT_VALUE;i.exports={getHighWaterMark:function(e,i,t,a){var o=function(e,i,t){return null!=e.highWaterMark?e.highWaterMark:i?e[t]:null}(i,a,t);if(null!=o){if(!isFinite(o)||Math.floor(o)!==o||o<0)throw new n(a?t:"highWaterMark",o);return Math.floor(o)}return e.objectMode?16:16384}}},{"../../../errors":57}],70:[function(e,i,t){i.exports=e("events").EventEmitter},{events:21}],71:[function(e,i,t){(t=i.exports=e("./lib/_stream_readable.js")).Stream=t,t.Readable=t,t.Writable=e("./lib/_stream_writable.js"),t.Duplex=e("./lib/_stream_duplex.js"),t.Transform=e("./lib/_stream_transform.js"),t.PassThrough=e("./lib/_stream_passthrough.js"),t.finished=e("./lib/internal/streams/end-of-stream.js"),t.pipeline=e("./lib/internal/streams/pipeline.js")},{"./lib/_stream_duplex.js":58,"./lib/_stream_passthrough.js":59,"./lib/_stream_readable.js":60,"./lib/_stream_transform.js":61,"./lib/_stream_writable.js":62,"./lib/internal/streams/end-of-stream.js":66,"./lib/internal/streams/pipeline.js":68}],72:[function(e,i,t){"use strict";var n=e("safe-buffer").Buffer,a=n.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var i;switch(this.encoding=function(e){var i=function(e){if(!e)return"utf8";for(var i;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(i)return;e=(""+e).toLowerCase(),i=!0}}(e);if("string"!=typeof i&&(n.isEncoding===a||!a(e)))throw new Error("Unknown encoding: "+e);return i||e}(e),this.encoding){case"utf16le":this.text=s,this.end=u,i=4;break;case"utf8":this.fillLast=l,i=4;break;case"base64":this.text=p,this.end=c,i=3;break;default:return this.write=d,void(this.end=g)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(i)}function r(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function l(e){var i=this.lastTotal-this.lastNeed,t=function(e,i,t){if(128!=(192&i[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&i.length>1){if(128!=(192&i[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&i.length>2&&128!=(192&i[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==t?t:this.lastNeed<=e.length?(e.copy(this.lastChar,i,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,i,0,e.length),void(this.lastNeed-=e.length))}function s(e,i){if((e.length-i)%2==0){var t=e.toString("utf16le",i);if(t){var n=t.charCodeAt(t.length-1);if(n>=55296&&n<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],t.slice(0,-1)}return t}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",i,e.length-1)}function u(e){var i=e&&e.length?this.write(e):"";if(this.lastNeed){var t=this.lastTotal-this.lastNeed;return i+this.lastChar.toString("utf16le",0,t)}return i}function p(e,i){var t=(e.length-i)%3;return 0===t?e.toString("base64",i):(this.lastNeed=3-t,this.lastTotal=3,1===t?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",i,e.length-t))}function c(e){var i=e&&e.length?this.write(e):"";return this.lastNeed?i+this.lastChar.toString("base64",0,3-this.lastNeed):i}function d(e){return e.toString(this.encoding)}function g(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var i,t;if(this.lastNeed){if(void 0===(i=this.fillLast(e)))return"";t=this.lastNeed,this.lastNeed=0}else t=0;return t=0)return a>0&&(e.lastNeed=a-1),a;if(--n=0)return a>0&&(e.lastNeed=a-2),a;if(--n=0)return a>0&&(2===a?a=0:e.lastNeed=a-3),a;return 0}(this,e,i);if(!this.lastNeed)return e.toString("utf8",i);this.lastTotal=t;var n=e.length-(t-this.lastNeed);return e.copy(this.lastChar,0,n),e.toString("utf8",i,n)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},{"safe-buffer":48}],73:[function(e,i,t){(function(i,n){(function(){var a=e("process/browser.js").nextTick,o=Function.prototype.apply,r=Array.prototype.slice,l={},s=0;function u(e,i){this._id=e,this._clearFn=i}t.setTimeout=function(){return new u(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new u(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},u.prototype.unref=u.prototype.ref=function(){},u.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,i){clearTimeout(e._idleTimeoutId),e._idleTimeout=i},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var i=e._idleTimeout;i>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},i))},t.setImmediate="function"==typeof i?i:function(e){var i=s++,n=!(arguments.length<2)&&r.call(arguments,1);return l[i]=!0,a(function(){l[i]&&(n?e.apply(null,n):e.call(null),t.clearImmediate(i))}),i},t.clearImmediate="function"==typeof n?n:function(e){delete l[e]}}).call(this)}).call(this,e("timers").setImmediate,e("timers").clearImmediate)},{"process/browser.js":41,timers:73}],74:[function(e,i,t){"use strict";var n=e("punycode/");function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var o=/^([a-z0-9.+-]+:)/i,r=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,s=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),u=["'"].concat(s),p=["%","/","?",";","#"].concat(u),c=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,h={javascript:!0,"javascript:":!0},m={javascript:!0,"javascript:":!0},f={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},v=e("qs");function w(e,i,t){if(e&&"object"==typeof e&&e instanceof a)return e;var n=new a;return n.parse(e,i,t),n}a.prototype.parse=function(e,i,t){if("string"!=typeof e)throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var a=e.indexOf("?"),r=-1!==a&&a127?E+="x":E+=q[R];if(!E.match(d)){var G=M.slice(0,P),x=M.slice(P+1),D=q.match(g);D&&(G.push(D[1]),x.unshift(D[2])),x.length&&(w="/"+x.join(".")+w),this.hostname=G.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=n.toASCII(this.hostname));var W=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+W,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!h[I])for(P=0,S=u.length;P0)&&t.host.split("@"))&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname);return t.search=e.search,t.query=e.query,null===t.pathname&&null===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.href=t.format(),t}if(!b.length)return t.pathname=null,t.search?t.path="/"+t.search:t.path=null,t.href=t.format(),t;for(var k=b.slice(-1)[0],j=(t.host||e.host||b.length>1)&&("."===k||".."===k)||""===k,P=0,O=b.length;O>=0;O--)"."===(k=b[O])?b.splice(O,1):".."===k?(b.splice(O,1),P++):P&&(b.splice(O,1),P--);if(!C&&!I)for(;P--;P)b.unshift("..");!C||""===b[0]||b[0]&&"/"===b[0].charAt(0)||b.unshift(""),j&&"/"!==b.join("/").substr(-1)&&b.push("");var T,M=""===b[0]||b[0]&&"/"===b[0].charAt(0);A&&(t.hostname=M?"":b.length?b.shift():"",t.host=t.hostname,(T=!!(t.host&&t.host.indexOf("@")>0)&&t.host.split("@"))&&(t.auth=T.shift(),t.hostname=T.shift(),t.host=t.hostname));return(C=C||t.host&&b.length)&&!M&&b.unshift(""),b.length>0?t.pathname=b.join("/"):(t.pathname=null,t.path=null),null===t.pathname&&null===t.search||(t.path=(t.pathname?t.pathname:"")+(t.search?t.search:"")),t.auth=e.auth||t.auth,t.slashes=t.slashes||e.slashes,t.href=t.format(),t},a.prototype.parseHost=function(){var e=this.host,i=r.exec(e);i&&(":"!==(i=i[0])&&(this.port=i.substr(1)),e=e.substr(0,e.length-i.length)),e&&(this.hostname=e)},t.parse=w,t.resolve=function(e,i){return w(e,!1,!0).resolve(i)},t.resolveObject=function(e,i){return e?w(e,!1,!0).resolveObject(i):i},t.format=function(e){return"string"==typeof e&&(e=w(e)),e instanceof a?e.format():a.prototype.format.call(e)},t.Url=a},{"punycode/":42,qs:44}],75:[function(e,i,t){(function(e){(function(){function t(i){try{if(!e.localStorage)return!1}catch(e){return!1}var t=e.localStorage[i];return null!=t&&"true"===String(t).toLowerCase()}i.exports=function(e,i){if(t("noDeprecation"))return e;var n=!1;return function(){if(!n){if(t("throwDeprecation"))throw new Error(i);t("traceDeprecation")?console.trace(i):console.warn(i),n=!0}return e.apply(this,arguments)}}}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],76:[function(e,i,t){i.exports=function(){for(var e={},i=0;i=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return a("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),u=n.call(r,"finallyLoc");if(s&&u){if(this.prev=0;--t){var a=this.tryEntries[t];if(a.tryLoc<=this.prev&&n.call(a,"finallyLoc")&&this.prev=0;--i){var t=this.tryEntries[i];if(t.finallyLoc===e)return this.complete(t.completion,t.afterLoc),q(t),v}},catch:function(e){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc===e){var n=t.completion;if("throw"===n.type){var a=n.arg;q(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(i,t,n){return this.delegate={iterator:R(i),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),v}},i}function p(e){return function(e){if(Array.isArray(e))return w(e)}(e)||c(e)||v(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function d(e,i){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);i&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function g(e){for(var i=1;ie.length)&&(i=e.length);for(var t=0,n=Array(i);t>18&63]+B[a>>12&63]+B[a>>6&63]+B[63&a]);return o.join("")}function F(e){var i;_||N();for(var t=e.length,n=t%3,a="",o=[],r=0,l=t-n;rl?l:r+16383));return 1===n?(i=e[t-1],a+=B[i>>2],a+=B[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=B[i>>10],a+=B[i>>4&63],a+=B[i<<2&63],a+="="),o.push(a),o.join("")}function J(e,i,t,n,a){var o,r,l=8*a-n-1,s=(1<>1,p=-7,c=t?a-1:0,d=t?-1:1,g=e[i+c];for(c+=d,o=g&(1<<-p)-1,g>>=-p,p+=l;p>0;o=256*o+e[i+c],c+=d,p-=8);for(r=o&(1<<-p)-1,o>>=-p,p+=n;p>0;r=256*r+e[i+c],c+=d,p-=8);if(0===o)o=1-u;else{if(o===s)return r?NaN:1/0*(g?-1:1);r+=Math.pow(2,n),o-=u}return(g?-1:1)*r*Math.pow(2,o-n)}function V(e,i,t,n,a,o){var r,l,s,u=8*o-a-1,p=(1<>1,d=23===a?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,h=n?1:-1,m=i<0||0===i&&1/i<0?1:0;for(i=Math.abs(i),isNaN(i)||i===1/0?(l=isNaN(i)?1:0,r=p):(r=Math.floor(Math.log(i)/Math.LN2),i*(s=Math.pow(2,-r))<1&&(r--,s*=2),(i+=r+c>=1?d/s:d*Math.pow(2,1-c))*s>=2&&(r++,s/=2),r+c>=p?(l=0,r=p):r+c>=1?(l=(i*s-1)*Math.pow(2,a),r+=c):(l=i*Math.pow(2,c-1)*Math.pow(2,a),r=0));a>=8;e[t+g]=255&l,g+=h,l/=256,a-=8);for(r=r<0;e[t+g]=255&r,g+=h,r/=256,u-=8);e[t+g-h]|=128*m}var Q={}.toString,H=Array.isArray||function(e){return"[object Array]"==Q.call(e)};function Y(){return X.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function $(e,i){if(Y()=Y())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Y().toString(16)+" bytes");return 0|e}function ae(e){return!(null==e||!e._isBuffer)}function oe(e,i){if(ae(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var t=e.length;if(0===t)return 0;for(var n=!1;;)switch(i){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":case void 0:return qe(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return Ee(e).length;default:if(n)return qe(e).length;i=(""+i).toLowerCase(),n=!0}}function re(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function le(e,i,t,n,a){if(0===e.length)return-1;if("string"==typeof t?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,isNaN(t)&&(t=a?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(a)return-1;t=e.length-1}else if(t<0){if(!a)return-1;t=0}if("string"==typeof i&&(i=X.from(i,n)),ae(i))return 0===i.length?-1:se(e,i,t,n,a);if("number"==typeof i)return i&=255,X.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):se(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function se(e,i,t,n,a){var o,r=1,l=e.length,s=i.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||i.length<2)return-1;r=2,l/=2,s/=2,t/=2}function u(e,i){return 1===r?e[i]:e.readUInt16BE(i*r)}if(a){var p=-1;for(o=t;ol&&(t=l-s),o=t;o>=0;o--){for(var c=!0,d=0;da&&(n=a):n=a;var o=i.length;if(o%2!=0)throw new TypeError("Invalid hex string");n>o/2&&(n=o/2);for(var r=0;r>8,a=t%256,o.push(a),o.push(n);return o}(i,e.length-t),e,t,n)}function me(e,i,t){return 0===i&&t===e.length?F(e):F(e.slice(i,t))}function fe(e,i,t){t=Math.min(e.length,t);for(var n=[],a=i;a239?4:u>223?3:u>191?2:1;if(a+c<=t)switch(c){case 1:u<128&&(p=u);break;case 2:128==(192&(o=e[a+1]))&&(s=(31&u)<<6|63&o)>127&&(p=s);break;case 3:o=e[a+1],r=e[a+2],128==(192&o)&&128==(192&r)&&(s=(15&u)<<12|(63&o)<<6|63&r)>2047&&(s<55296||s>57343)&&(p=s);break;case 4:o=e[a+1],r=e[a+2],l=e[a+3],128==(192&o)&&128==(192&r)&&128==(192&l)&&(s=(15&u)<<18|(63&o)<<12|(63&r)<<6|63&l)>65535&&s<1114112&&(p=s)}null===p?(p=65533,c=1):p>65535&&(p-=65536,n.push(p>>>10&1023|55296),p=56320|1023&p),n.push(p),a+=c}return function(e){var i=e.length;if(i<=ve)return String.fromCharCode.apply(String,e);var t="",n=0;for(;nthis.length)return"";if((void 0===t||t>this.length)&&(t=this.length),t<=0)return"";if((t>>>=0)<=(i>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Ce(this,i,t);case"utf8":case"utf-8":return fe(this,i,t);case"ascii":return we(this,i,t);case"latin1":case"binary":return ye(this,i,t);case"base64":return me(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ie(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},X.prototype.equals=function(e){if(!ae(e))throw new TypeError("Argument must be a Buffer");return this===e||0===X.compare(this,e)},X.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},X.prototype.compare=function(e,i,t,n,a){if(!ae(e))throw new TypeError("Argument must be a Buffer");if(void 0===i&&(i=0),void 0===t&&(t=e?e.length:0),void 0===n&&(n=0),void 0===a&&(a=this.length),i<0||t>e.length||n<0||a>this.length)throw new RangeError("out of range index");if(n>=a&&i>=t)return 0;if(n>=a)return-1;if(i>=t)return 1;if(i>>>=0,t>>>=0,n>>>=0,a>>>=0,this===e)return 0;for(var o=a-n,r=t-i,l=Math.min(o,r),s=this.slice(n,a),u=e.slice(i,t),p=0;pa)&&(t=a),e.length>0&&(t<0||i<0)||i>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o=!1;;)switch(n){case"hex":return ue(this,e,i,t);case"utf8":case"utf-8":return pe(this,e,i,t);case"ascii":return ce(this,e,i,t);case"latin1":case"binary":return de(this,e,i,t);case"base64":return ge(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return he(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},X.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ve=4096;function we(e,i,t){var n="";t=Math.min(e.length,t);for(var a=i;an)&&(t=n);for(var a="",o=i;ot)throw new RangeError("Trying to access beyond buffer length")}function Ae(e,i,t,n,a,o){if(!ae(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function ke(e,i,t,n){i<0&&(i=65535+i+1);for(var a=0,o=Math.min(e.length-t,2);a>>8*(n?a:1-a)}function je(e,i,t,n){i<0&&(i=4294967295+i+1);for(var a=0,o=Math.min(e.length-t,4);a>>8*(n?a:3-a)&255}function Pe(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Oe(e,i,t,n,a){return a||Pe(e,0,t,4),V(e,i,t,n,23,4),t+4}function Te(e,i,t,n,a){return a||Pe(e,0,t,8),V(e,i,t,n,52,8),t+8}X.prototype.slice=function(e,i){var t,n=this.length;if(e=~~e,i=void 0===i?n:~~i,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),i<0?(i+=n)<0&&(i=0):i>n&&(i=n),i0&&(a*=256);)n+=this[e+--i]*a;return n},X.prototype.readUInt8=function(e,i){return i||be(e,1,this.length),this[e]},X.prototype.readUInt16LE=function(e,i){return i||be(e,2,this.length),this[e]|this[e+1]<<8},X.prototype.readUInt16BE=function(e,i){return i||be(e,2,this.length),this[e]<<8|this[e+1]},X.prototype.readUInt32LE=function(e,i){return i||be(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},X.prototype.readUInt32BE=function(e,i){return i||be(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},X.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||be(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},X.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||be(e,i,this.length);for(var n=i,a=1,o=this[e+--n];n>0&&(a*=256);)o+=this[e+--n]*a;return o>=(a*=128)&&(o-=Math.pow(2,8*i)),o},X.prototype.readInt8=function(e,i){return i||be(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},X.prototype.readInt16LE=function(e,i){i||be(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},X.prototype.readInt16BE=function(e,i){i||be(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},X.prototype.readInt32LE=function(e,i){return i||be(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},X.prototype.readInt32BE=function(e,i){return i||be(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},X.prototype.readFloatLE=function(e,i){return i||be(e,4,this.length),J(this,e,!0,23,4)},X.prototype.readFloatBE=function(e,i){return i||be(e,4,this.length),J(this,e,!1,23,4)},X.prototype.readDoubleLE=function(e,i){return i||be(e,8,this.length),J(this,e,!0,52,8)},X.prototype.readDoubleBE=function(e,i){return i||be(e,8,this.length),J(this,e,!1,52,8)},X.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||Ae(this,e,i,t,Math.pow(2,8*t)-1,0);var a=1,o=0;for(this[i]=255&e;++o=0&&(o*=256);)this[i+a]=e/o&255;return i+t},X.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,1,255,0),X.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},X.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,65535,0),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):ke(this,e,i,!0),i+2},X.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,65535,0),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):ke(this,e,i,!1),i+2},X.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,4294967295,0),X.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):je(this,e,i,!0),i+4},X.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,4294967295,0),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):je(this,e,i,!1),i+4},X.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);Ae(this,e,i,t,a-1,-a)}var o=0,r=1,l=0;for(this[i]=255&e;++o>0)-l&255;return i+t},X.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);Ae(this,e,i,t,a-1,-a)}var o=t-1,r=1,l=0;for(this[i+o]=255&e;--o>=0&&(r*=256);)e<0&&0===l&&0!==this[i+o+1]&&(l=1),this[i+o]=(e/r>>0)-l&255;return i+t},X.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,1,127,-128),X.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},X.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,32767,-32768),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):ke(this,e,i,!0),i+2},X.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,2,32767,-32768),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):ke(this,e,i,!1),i+2},X.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,2147483647,-2147483648),X.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):je(this,e,i,!0),i+4},X.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||Ae(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),X.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):je(this,e,i,!1),i+4},X.prototype.writeFloatLE=function(e,i,t){return Oe(this,e,i,!0,t)},X.prototype.writeFloatBE=function(e,i,t){return Oe(this,e,i,!1,t)},X.prototype.writeDoubleLE=function(e,i,t){return Te(this,e,i,!0,t)},X.prototype.writeDoubleBE=function(e,i,t){return Te(this,e,i,!1,t)},X.prototype.copy=function(e,i,t,n){if(t||(t=0),n||0===n||(n=this.length),i>=e.length&&(i=e.length),i||(i=0),n>0&&n=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-i=0;--a)e[a+i]=this[a+t];else if(o<1e3||!X.TYPED_ARRAY_SUPPORT)for(a=0;a>>=0,t=void 0===t?this.length:t>>>0,e||(e=0),"number"==typeof e)for(o=i;o55295&&t<57344){if(!a){if(t>56319){(i-=3)>-1&&o.push(239,191,189);continue}if(r+1===n){(i-=3)>-1&&o.push(239,191,189);continue}a=t;continue}if(t<56320){(i-=3)>-1&&o.push(239,191,189),a=t;continue}t=65536+(a-55296<<10|t-56320)}else a&&(i-=3)>-1&&o.push(239,191,189);if(a=null,t<128){if((i-=1)<0)break;o.push(t)}else if(t<2048){if((i-=2)<0)break;o.push(t>>6|192,63&t|128)}else if(t<65536){if((i-=3)<0)break;o.push(t>>12|224,t>>6&63|128,63&t|128)}else{if(!(t<1114112))throw new Error("Invalid code point");if((i-=4)<0)break;o.push(t>>18|240,t>>12&63|128,t>>6&63|128,63&t|128)}}return o}function Ee(e){return function(e){var i,t,n,a,o,r;_||N();var l=e.length;if(l%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[l-2]?2:"="===e[l-1]?1:0,r=new L(3*l/4-o),n=o>0?l-4:l;var s=0;for(i=0,t=0;i>16&255,r[s++]=a>>8&255,r[s++]=255&a;return 2===o?(a=z[e.charCodeAt(i)]<<2|z[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=z[e.charCodeAt(i)]<<10|z[e.charCodeAt(i+1)]<<4|z[e.charCodeAt(i+2)]>>2,r[s++]=a>>8&255,r[s++]=255&a),r}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(Me,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function Re(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function Ue(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Ge={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},xe={formats:{JSON:"json",TEXT:"text"}},De=function(){return b(function e(){C(this,e),this.log_level=Ge.level.LNone,this.log_format=xe.formats.TEXT,this.log_to_console=!0,this.log_file_path,this.log_response_body=!1,this.log_request_body=!1,this.setLogger()},[{key:"logLevelEnum",get:function(){return Ge}},{key:"logFormatEnum",get:function(){return xe}},{key:"setLogger",value:function(){}},{key:"log",value:function(e,i,t,n,a,o,r,l){var s=this.formatLog(e,i,t,n,a,o,r,l);"undefined"!=typeof window?this.calculateLogLevel(e)>0&&!0===this.log_to_console&&(this.log_format===this.logFormatEnum.formats.JSON?console.log(s):console.log("".concat(e.toUpperCase(),": ").concat(s))):this.logger.transports.length>0&&this.logger.log(e,s)}},{key:"calculateLogLevel",value:function(e){switch(this.log_level){case this.logLevelEnum.level.LError:return e!==this.logLevelEnum.level.LError?-1:1;case this.logLevelEnum.level.LDebug:return e===this.logLevelEnum.level.LTrace?-1:1;case this.logLevelEnum.level.LTrace:return 1;default:return-1}}},{key:"formatLog",value:function(e,i,t,n,a,o,r,l){var s,u=a?JSON.parse(JSON.stringify(a)):null,p=o?JSON.parse(JSON.stringify(o)):null,c=r?JSON.parse(JSON.stringify(r)):null,d=l?JSON.parse(JSON.stringify(l)):null;return a&&(u.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(d=void 0),this.log_format&&this.log_format===xe.formats.JSON?(s={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"",statusCode:i},u&&(s.requestHeaders=u),p&&(s.responseHeaders=p),c&&(s.requestBody=c),d&&(s.responseBody=d)):s="".concat((new Date).toISOString(),"\n=== REQUEST === \n").concat(this.formatValue("URL",decodeURIComponent(n))).concat(this.formatValue("Method",t)).concat(this.formatValue("Headers",this.formatHeaderString(u))).concat(this.formatValue("Body",c?JSON.stringify(c,null,2):""),"\n=== RESPONSE ===\n").concat(this.formatValue("Status",i)).concat(this.formatValue("Headers",this.formatHeaderString(p))).concat(this.formatValue("CorrelationId",p&&p["inin-correlation-id"]?p["inin-correlation-id"]:"")).concat(this.formatValue("Body",d?JSON.stringify(d,null,2):"")),s}},{key:"formatHeaderString",value:function(e){var i="";if(!e)return i;for(var t=0,n=Object.entries(e);t-1?this.gateway.port=e.port:this.gateway.port=-1,e.path_params_login?(this.gateway.path_params_login=e.path_params_login,this.gateway.path_params_login=this.gateway.path_params_login.replace(/\/+$/,"")):this.gateway.path_params_login="",e.path_params_api?(this.gateway.path_params_api=e.path_params_api,this.gateway.path_params_api=this.gateway.path_params_api.replace(/\/+$/,"")):this.gateway.path_params_api="",e.username&&(this.gateway.username=e.username),e.password&&(this.gateway.password=e.password)):this.gateway=void 0}},{key:"setEnvironment",value:function(e){this.environment=e||(this.host?this.host:"mypurecloud.com"),this.environment=this.environment.replace(/\/+$/,""),this.environment.startsWith("https://")&&(this.environment=this.environment.substring(8)),this.environment.startsWith("http://")&&(this.environment=this.environment.substring(7)),this.environment.startsWith("api.")&&(this.environment=this.environment.substring(4)),this.basePath="https://api.".concat(this.environment),this.authUrl="https://login.".concat(this.environment)}},{key:"getConfUrl",value:function(e,i){if(!this.gateway)return i;if(!this.gateway.host)return i;var t=this.gateway.protocol+"://"+this.gateway.host;return this.gateway.port>-1&&(t=t+":"+this.gateway.port.toString()),"login"===e?this.gateway.path_params_login&&(this.gateway.path_params_login.startsWith("/")?t+=this.gateway.path_params_login:t=t+"/"+this.gateway.path_params_login):this.gateway.path_params_api&&(this.gateway.path_params_api.startsWith("/")?t+=this.gateway.path_params_api:t=t+"/"+this.gateway.path_params_api),t}},{key:"getConfigString",value:function(e,i){if(this.config._sections[e])return this.config._sections[e][i]}},{key:"getConfigBoolean",value:function(e,i){if(this.config._sections[e]&&void 0!==this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?"true"===this.config._sections[e][i]:this.config._sections[e][i]}},{key:"getConfigInt",value:function(e,i){if(this.config._sections[e]&&this.config._sections[e][i])return"string"==typeof this.config._sections[e][i]?parseInt(this.config._sections[e][i]):this.config._sections[e][i]}}])}();function Be(){throw new Error("setTimeout has not been defined")}function ze(){throw new Error("clearTimeout has not been defined")}var Le=Be,_e=ze;function Ne(e){if(Le===setTimeout)return setTimeout(e,0);if((Le===Be||!Le)&&setTimeout)return Le=setTimeout,setTimeout(e,0);try{return Le(e,0)}catch(i){try{return Le.call(null,e,0)}catch(i){return Le.call(this,e,0)}}}"function"==typeof W.setTimeout&&(Le=setTimeout),"function"==typeof W.clearTimeout&&(_e=clearTimeout);var Ke,Fe=[],Je=!1,Ve=-1;function Qe(){Je&&Ke&&(Je=!1,Ke.length?Fe=Ke.concat(Fe):Ve=-1,Fe.length&&He())}function He(){if(!Je){var e=Ne(Qe);Je=!0;for(var i=Fe.length;i;){for(Ke=Fe,Fe=[];++Ve1)for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==a&&a;if(null!==e&&void 0!==e)if("object"!==k(e)&&(e=[e]),vi(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Di="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:W,Wi=function(e){return!wi(e)&&e!==Di};var Bi,zi=(Bi="undefined"!=typeof Uint8Array&&gi(Uint8Array),function(e){return Bi&&e instanceof Bi}),Li=mi("HTMLFormElement"),_i=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),Ni=mi("RegExp"),Ki=function(e,i){var t={};Gi(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},Fi="abcdefghijklmnopqrstuvwxyz",Ji={DIGIT:"0123456789",ALPHA:Fi,ALPHA_DIGIT:Fi+Fi.toUpperCase()+"0123456789"};var Vi,Qi,Hi,Yi,$i=mi("AsyncFunction"),Xi=(Vi="function"==typeof a,Qi=Ii(Di.postMessage),Vi?a:Qi?(Hi="axios@".concat(Math.random()),Yi=[],Di.addEventListener("message",function(e){var i=e.source,t=e.data;i===Di&&t===Hi&&Yi.length&&Yi.shift()()},!1),function(e){Yi.push(e),Di.postMessage(Hi,"*")}):function(e){return setTimeout(e)}),Zi="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Di):void 0!==ui&&Ye||Xi,et={isArray:vi,isArrayBuffer:yi,isBuffer:function(e){return null!==e&&!wi(e)&&null!==e.constructor&&!wi(e.constructor)&&Ii(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||Ii(e.append)&&("formdata"===(i=hi(e))||"object"===i&&Ii(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&yi(e.buffer)},isString:Ci,isNumber:bi,isBoolean:function(e){return!0===e||!1===e},isObject:Ai,isPlainObject:ki,isReadableStream:qi,isRequest:Ei,isResponse:Ri,isHeaders:Ui,isUndefined:wi,isDate:ji,isFile:Pi,isBlob:Oi,isRegExp:Ni,isFunction:Ii,isStream:function(e){return Ai(e)&&Ii(e.pipe)},isURLSearchParams:Mi,isTypedArray:zi,isFileList:Ti,forEach:Gi,merge:function e(){for(var i=(Wi(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&xi(t,a)||a;ki(t[o])&&ki(n)?t[o]=e(t[o],n):ki(n)?t[o]=e({},n):vi(n)?t[o]=n.slice():t[o]=n},a=0,o=arguments.length;a3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,i,t,n){e.prototype=Object.create(i.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:i.prototype}),t&&Object.assign(e.prototype,t)},toFlatObject:function(e,i,t,n){var a,o,r,l={};if(i=i||{},null==e)return i;do{for(o=(a=Object.getOwnPropertyNames(e)).length;o-- >0;)r=a[o],n&&!n(r,e,i)||l[r]||(i[r]=e[r],l[r]=!0);e=!1!==t&&gi(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:hi,kindOfTest:mi,endsWith:function(e,i,t){e=String(e),(void 0===t||t>e.length)&&(t=e.length),t-=i.length;var n=e.indexOf(i,t);return-1!==n&&n===t},toArray:function(e){if(!e)return null;if(vi(e))return e;var i=e.length;if(!bi(i))return null;for(var t=new Array(i);i-- >0;)t[i]=e[i];return t},forEachEntry:function(e,i){for(var t,n=(e&&e[Symbol.iterator]).call(e);(t=n.next())&&!t.done;){var a=t.value;i.call(e,a[0],a[1])}},matchAll:function(e,i){for(var t,n=[];null!==(t=e.exec(i));)n.push(t);return n},isHTMLForm:Li,hasOwnProperty:_i,hasOwnProp:_i,reduceDescriptors:Ki,freezeMethods:function(e){Ki(e,function(i,t){if(Ii(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];Ii(n)&&(i.enumerable=!1,"writable"in i?i.writable=!1:i.set||(i.set=function(){throw Error("Can not rewrite read-only method '"+t+"'")}))})},toObjectSet:function(e,i){var t={},n=function(e){e.forEach(function(e){t[e]=!0})};return vi(e)?n(e):n(String(e).split(i)),t},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,i,t){return i.toUpperCase()+t})},noop:function(){},toFiniteNumber:function(e,i){return null!=e&&Number.isFinite(e=+e)?e:i},findKey:xi,global:Di,isContextDefined:Wi,ALPHABET:Ji,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ji.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&Ii(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10),t=function(e,n){if(Ai(e)){if(i.indexOf(e)>=0)return;if(!("toJSON"in e)){i[n]=e;var a=vi(e)?[]:{};return Gi(e,function(e,i){var o=t(e,n+1);!wi(o)&&(a[i]=o)}),i[n]=void 0,a}}return e};return t(e,0)},isAsyncFn:$i,isThenable:function(e){return e&&(Ai(e)||Ii(e))&&Ii(e.then)&&Ii(e.catch)},setImmediate:Xi,asap:Zi};function it(e,i,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",i&&(this.code=i),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}et.inherits(it,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:et.toJSONObject(this.config),code:this.code,status:this.status}}});var tt=it.prototype,nt={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(function(e){nt[e]={value:e}}),Object.defineProperties(it,nt),Object.defineProperty(tt,"isAxiosError",{value:!0}),it.from=function(e,i,t,n,a,o){var r=Object.create(tt);return et.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),it.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function at(e){return et.isPlainObject(e)||et.isArray(e)}function ot(e){return et.endsWith(e,"[]")?e.slice(0,-2):e}function rt(e,i,t){return e?e.concat(i).map(function(e,i){return e=ot(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var lt=et.toFlatObject(et,{},null,function(e){return/^is[A-Z]/.test(e)});function st(e,i,t){if(!et.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=et.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!et.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&et.isSpecCompliantForm(i);if(!et.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(et.isDate(e))return e.toISOString();if(!l&&et.isBlob(e))throw new it("Blob is not supported. Use a Buffer instead.");return et.isArrayBuffer(e)||et.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):X.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===k(e))if(et.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(et.isArray(e)&&function(e){return et.isArray(e)&&!e.some(at)}(e)||(et.isFileList(e)||et.endsWith(t,"[]"))&&(l=et.toArray(e)))return t=ot(t),l.forEach(function(e,n){!et.isUndefined(e)&&null!==e&&i.append(!0===r?rt([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!at(e)||(i.append(rt(a,t,o),s(e)),!1)}var p=[],c=Object.assign(lt,{defaultVisitor:u,convertValue:s,isVisitable:at});if(!et.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!et.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),et.forEach(t,function(t,o){!0===(!(et.isUndefined(t)||null===t)&&a.call(i,t,et.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function ut(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function pt(e,i){this._pairs=[],e&&st(e,this,i)}var ct=pt.prototype;function dt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gt(e,i,t){if(!i)return e;var n=t&&t.encode||dt;et.isFunction(t)&&(t={serialize:t});var a,o=t&&t.serialize;if(a=o?o(i,t):et.isURLSearchParams(i)?i.toString():new pt(i,t).toString(n)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}ct.append=function(e,i){this._pairs.push([e,i])},ct.toString=function(e){var i=e?function(i){return e.call(this,i,ut)}:ut;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var ht=function(){return b(function e(){C(this,e),this.handlers=[]},[{key:"use",value:function(e,i,t){return this.handlers.push({fulfilled:e,rejected:i,synchronous:!!t&&t.synchronous,runWhen:t?t.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){et.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),mt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ft={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:pt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vt="undefined"!=typeof window&&"undefined"!=typeof document,wt="object"===("undefined"==typeof navigator?"undefined":k(navigator))&&navigator||void 0,yt=vt&&(!wt||["ReactNative","NativeScript","NS"].indexOf(wt.product)<0),Ct="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,It=vt&&window.location.href||"http://localhost",bt=g(g({},Object.freeze({__proto__:null,hasBrowserEnv:vt,hasStandardBrowserWebWorkerEnv:Ct,hasStandardBrowserEnv:yt,navigator:wt,origin:It})),ft);function At(e){function i(e,t,n,a){var o=e[a++];if("__proto__"===o)return!0;var r=Number.isFinite(+o),l=a>=e.length;return o=!o&&et.isArray(n)?n.length:o,l?(et.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&et.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&et.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=et.isObject(e);if(o&&et.isHTMLForm(e)&&(e=new FormData(e)),et.isFormData(e))return a?JSON.stringify(At(e)):e;if(et.isArrayBuffer(e)||et.isBuffer(e)||et.isStream(e)||et.isFile(e)||et.isBlob(e)||et.isReadableStream(e))return e;if(et.isArrayBufferView(e))return e.buffer;if(et.isURLSearchParams(e))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,i){return st(e,new bt.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return bt.isNode&&et.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=et.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return st(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(et.isString(e))try{return(i||JSON.parse)(e),et.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||kt.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(et.isResponse(e)||et.isReadableStream(e))return e;if(e&&et.isString(e)&&(t&&!this.responseType||n)){var a=!(i&&i.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw it.from(e,it.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:bt.classes.FormData,Blob:bt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};et.forEach(["delete","get","head","post","put","patch"],function(e){kt.headers[e]={}});var jt=kt,Pt=et.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Ot=Symbol("internals");function Tt(e){return e&&String(e).trim().toLowerCase()}function Mt(e){return!1===e||null==e?e:et.isArray(e)?e.map(Mt):String(e)}function St(e,i,t,n,a){return et.isFunction(n)?n.call(this,i,t):(a&&(i=t),et.isString(i)?et.isString(n)?-1!==i.indexOf(n):et.isRegExp(n)?n.test(i):void 0:void 0)}var qt=function(){return b(function e(i){C(this,e),i&&this.set(i)},[{key:"set",value:function(e,i,t){var n=this;function a(e,i,t){var a=Tt(i);if(!a)throw new Error("header name must be a non-empty string");var o=et.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Mt(e))}var o=function(e,i){return et.forEach(e,function(e,t){return a(e,t,i)})};if(et.isPlainObject(e)||e instanceof this.constructor)o(e,i);else if(et.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o(function(e){var i,t,n,a={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),i=e.substring(0,n).trim().toLowerCase(),t=e.substring(n+1).trim(),!i||a[i]&&Pt[i]||("set-cookie"===i?a[i]?a[i].push(t):a[i]=[t]:a[i]=a[i]?a[i]+", "+t:t)}),a}(e),i);else if(et.isHeaders(e)){var r,l=function(e,i){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=v(e))||i&&e&&"number"==typeof e.length){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,r=!0,l=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return r=e.done,e},e:function(e){l=!0,o=e},f:function(){try{r||null==t.return||t.return()}finally{if(l)throw o}}}}(e.entries());try{for(l.s();!(r=l.n()).done;){var s=m(r.value,2),u=s[0];a(s[1],u,t)}}catch(e){l.e(e)}finally{l.f()}}else null!=e&&a(i,e,t);return this}},{key:"get",value:function(e,i){if(e=Tt(e)){var t=et.findKey(this,e);if(t){var n=this[t];if(!i)return n;if(!0===i)return function(e){for(var i,t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;i=n.exec(e);)t[i[1]]=i[2];return t}(n);if(et.isFunction(i))return i.call(this,n,t);if(et.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=Tt(e)){var t=et.findKey(this,e);return!(!t||void 0===this[t]||i&&!St(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=Tt(e)){var a=et.findKey(t,e);!a||i&&!St(0,t[a],a,i)||(delete t[a],n=!0)}}return et.isArray(e)?e.forEach(a):a(e),n}},{key:"clear",value:function(e){for(var i=Object.keys(this),t=i.length,n=!1;t--;){var a=i[t];e&&!St(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return et.forEach(this,function(n,a){var o=et.findKey(t,a);if(o)return i[o]=Mt(n),void delete i[a];var r=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,function(e,i,t){return i.toUpperCase()+t})}(a):String(a).trim();r!==a&&delete i[a],i[r]=Mt(n),t[r]=!0}),this}},{key:"concat",value:function(){for(var e,i=arguments.length,t=new Array(i),n=0;n1?t-1:0),a=1;a2&&void 0!==arguments[2]?arguments[2]:3,n=0,a=function(e,i){e=e||10;var t,n=new Array(e),a=new Array(e),o=0,r=0;return i=void 0!==i?i:1e3,function(l){var s=Date.now(),u=a[r];t||(t=s),n[o]=l,a[o]=s;for(var p=r,c=0;p!==o;)c+=n[p++],p%=e;if((o=(o+1)%e)===r&&(r=(r+1)%e),!(s-t1&&void 0!==arguments[1]?arguments[1]:Date.now();a=o,t=null,n&&(clearTimeout(n),n=null),e.apply(null,i)};return[function(){for(var e=Date.now(),i=e-a,l=arguments.length,s=new Array(l),u=0;u=o?r(s,e):(t=s,n||(n=setTimeout(function(){n=null,r(t)},o-i)))},function(){return t&&r(t)}]}(function(t){var o=t.loaded,r=t.lengthComputable?t.total:void 0,l=o-n,s=a(l);n=o;var u=h({loaded:o,total:r,progress:r?o/r:void 0,bytes:l,rate:s||void 0,estimated:s&&r&&o<=r?(r-o)/s:void 0,event:t,lengthComputable:null!=r},i?"download":"upload",!0);e(u)},t)},Wt=function(e,i){var t=null!=e;return[function(n){return i[0]({lengthComputable:t,total:e,loaded:n})},i[1]]},Bt=function(e){return function(){for(var i=arguments.length,t=new Array(i),n=0;n1?i-1:0),n=1;n1?"since :\n"+l.map(cn).join("\n"):" "+cn(l[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:pn};function hn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Gt(null,e)}function mn(e){return hn(e),e.headers=Et.from(e.headers),e.data=Rt.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),gn.getAdapter(e.adapter||jt.adapter)(e).then(function(i){return hn(e),i.data=Rt.call(e,e.transformResponse,i),i.headers=Et.from(i.headers),i},function(i){return Ut(i)||(hn(e),i&&i.response&&(i.response.data=Rt.call(e,e.transformResponse,i.response),i.response.headers=Et.from(i.response.headers))),Promise.reject(i)})}var fn="1.7.9",vn={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){vn[e]=function(t){return k(t)===e||"a"+(i<1?"n ":" ")+e}});var wn={};vn.transitional=function(e,i,t){function n(e,i){return"[Axios v"+fn+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new it(n(a," has been removed"+(i?" in "+i:"")),it.ERR_DEPRECATED);return i&&!wn[a]&&(wn[a]=!0,console.warn(n(a," has been deprecated since v"+i+" and will be removed in the near future"))),!e||e(t,a,o)}},vn.spelling=function(e){return function(i,t){return console.warn("".concat(t," is likely a misspelling of ").concat(e)),!0}};var yn={assertOptions:function(e,i,t){if("object"!==k(e))throw new it("options must be an object",it.ERR_BAD_OPTION_VALUE);for(var n=Object.keys(e),a=n.length;a-- >0;){var o=n[a],r=i[o];if(r){var l=e[o],s=void 0===l||r(l,o,e);if(!0!==s)throw new it("option "+o+" must be "+s,it.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new it("Unknown option "+o,it.ERR_BAD_OPTION)}},validators:vn},Cn=yn.validators,In=function(){return b(function e(i){C(this,e),this.defaults=i,this.interceptors={request:new ht,response:new ht}},[{key:"request",value:function(){var e=s(u().mark(function e(i,t){var n,a;return u().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(i,t);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){n={},Error.captureStackTrace?Error.captureStackTrace(n):n=new Error,a=n.stack?n.stack.replace(/^.+\n/,""):"";try{e.t0.stack?a&&!String(e.t0.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+a):e.t0.stack=a}catch(e){}}throw e.t0;case 10:case"end":return e.stop()}},e,this,[[0,6]])}));return function(i,t){return e.apply(this,arguments)}}()},{key:"_request",value:function(e,i){"string"==typeof e?(i=i||{}).url=e:i=e||{};var t=i=Kt(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&yn.assertOptions(n,{silentJSONParsing:Cn.transitional(Cn.boolean),forcedJSONParsing:Cn.transitional(Cn.boolean),clarifyTimeoutError:Cn.transitional(Cn.boolean)},!1),null!=a&&(et.isFunction(a)?i.paramsSerializer={serialize:a}:yn.assertOptions(a,{encode:Cn.function,serialize:Cn.function},!0)),yn.assertOptions(i,{baseUrl:Cn.spelling("baseURL"),withXsrfToken:Cn.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&et.merge(o.common,o[i.method]);o&&et.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Et.concat(r,o);var l=[],s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(i)||(s=s&&e.synchronous,l.unshift(e.fulfilled,e.rejected))});var u,p=[];this.interceptors.response.forEach(function(e){p.push(e.fulfilled,e.rejected)});var c,d=0;if(!s){var g=[mn.bind(this),void 0];for(g.unshift.apply(g,l),g.push.apply(g,p),c=g.length,u=Promise.resolve(i);d0;)n._listeners[i](e);n._listeners=null}}),this.promise.then=function(e){var i,t=new Promise(function(e){n.subscribe(e),i=e}).then(e);return t.cancel=function(){n.unsubscribe(i)},t},i(function(e,i,a){n.reason||(n.reason=new Gt(e,i,a),t(n.reason))})}return b(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var i=this._listeners.indexOf(e);-1!==i&&this._listeners.splice(i,1)}}},{key:"toAbortSignal",value:function(){var e=this,i=new AbortController,t=function(e){i.abort(e)};return this.subscribe(t),i.signal.unsubscribe=function(){return e.unsubscribe(t)},i.signal}}],[{key:"source",value:function(){var i;return{token:new e(function(e){i=e}),cancel:i}}}])}();var kn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(kn).forEach(function(e){var i=m(e,2),t=i[0],n=i[1];kn[n]=t});var jn=kn;var Pn=function e(i){var t=new bn(i),n=pi(bn.prototype.request,t);return et.extend(n,bn.prototype,t,{allOwnKeys:!0}),et.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Kt(i,t))},n}(jt);Pn.Axios=bn,Pn.CanceledError=Gt,Pn.CancelToken=An,Pn.isCancel=Ut,Pn.VERSION=fn,Pn.toFormData=st,Pn.AxiosError=it,Pn.Cancel=Pn.CanceledError,Pn.all=function(e){return Promise.all(e)},Pn.spread=function(e){return function(i){return e.apply(null,i)}},Pn.isAxiosError=function(e){return et.isObject(e)&&!0===e.isAxiosError},Pn.mergeConfig=Kt,Pn.AxiosHeaders=Et,Pn.formToJSON=function(e){return At(et.isHTMLForm(e)?new FormData(e):e)},Pn.getAdapter=gn.getAdapter,Pn.HttpStatusCode=jn,Pn.default=Pn;var On=Pn,Tn=function(){return b(function e(){C(this,e),this.timeout=16e3},[{key:"setTimeout",value:function(e){if(null===e||void 0===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}},{key:"setHttpsAgent",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'httpsAgent' property must be an object");this.httpsAgent=e}},{key:"request",value:function(e){throw new Error("method must be implemented")}}])}(),Mn=function(){return b(function e(i,t,n,a,o,r){C(this,e),this.setUrl(i),this.setMethod(t),n&&this.setHeaders(n),a&&this.setParams(a),o&&this.setData(o),null!==r&&void 0!==r?this.setTimeout(r):this.timeout=16e3},[{key:"setUrl",value:function(e){if(!e)throw new Error("The 'url' property is required");this.url=e}},{key:"setMethod",value:function(e){if(!e||!["GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD"].includes(e.toUpperCase()))throw new Error("The 'method' property is invalid or missing");this.method=e.toUpperCase()}},{key:"setData",value:function(e){if(void 0===e||null===e)throw new Error("The 'data' property is required");this.data=e}},{key:"setParams",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'params' property must be an object");this.params=e}},{key:"setHeaders",value:function(e){if(e&&"object"!==k(e))throw new Error("The 'headers' property must be an object");this.headers=e}},{key:"setTimeout",value:function(e){if(void 0===e||null===e||"number"!=typeof e)throw new Error("The 'timeout' property must be a number");this.timeout=e}}])}(),Sn=function(e){function i(e,t){var a;return C(this,i),a=n(this,i),null!==e&&void 0!==e?a.setTimeout(e):a.timeout=16e3,null!==t&&void 0!==t?a.setHttpsAgent(t):a.httpsAgent,a._axiosInstance=On.create({}),a}return function(e,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(i&&i.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),i&&r(e,i)}(i,Tn),b(i,[{key:"request",value:function(e){if(!(e instanceof Mn))throw new Error("httpRequestOptions must be instance of HttpRequestOptions ");var i=this.toAxiosConfig(e);return this._axiosInstance.request(i)}},{key:"toAxiosConfig",value:function(e){if(!e.url||!e.method)throw new Error("Mandatory fields 'url' and 'method' must be set before making a request");var i={url:e.url,method:e.method};return e.params&&(i.params=e.params),e.headers&&(i.headers=e.headers),e.data&&(i.data=e.data),null!=this.timeout&&void 0!=this.timeout&&(i.timeout=this.timeout),this.httpsAgent&&(i.httpsAgent=this.httpsAgent),i}}])}(),qn=function(){function e(){C(this,e),e.instance||(e.instance=this),this.CollectionFormatEnum={CSV:",",SSV:" ",TSV:"\t",PIPES:"|",MULTI:"multi"};try{localStorage.setItem("purecloud_local_storage_test","purecloud_local_storage_test"),localStorage.removeItem("purecloud_local_storage_test"),this.hasLocalStorage=!0}catch(e){this.hasLocalStorage=!1}this.authentications={"Guest Chat JWT":{type:"apiKey",in:"header",name:"Authorization"},"PureCloud OAuth":{type:"oauth2"}},this.defaultHeaders={},this.timeout=16e3,this.authData={},this.settingsPrefix="purecloud",this.refreshInProgress=!1,this.httpClient,this.proxyAgent,this.config=new We,"undefined"!=typeof window&&(window.ApiClient=this)}return b(e,[{key:"instance",get:function(){return e.instance},set:function(i){e.instance=i}},{key:"setReturnExtendedResponses",value:function(e){this.returnExtended=e}},{key:"setPersistSettings",value:function(e,i){this.persistSettings=e,this.settingsPrefix=i?i.replace(/\W+/g,"_"):"purecloud"}},{key:"_saveSettings",value:function(e){try{if(this.authData.accessToken=e.accessToken,this.authentications["PureCloud OAuth"].accessToken=e.accessToken,e.state&&(this.authData.state=e.state),this.authData.error=e.error,this.authData.error_description=e.error_description,e.tokenExpiryTime&&(this.authData.tokenExpiryTime=e.tokenExpiryTime,this.authData.tokenExpiryTimeString=e.tokenExpiryTimeString),!0!==this.persistSettings)return;if(!this.hasLocalStorage)return;var i=JSON.parse(JSON.stringify(this.authData));delete i.state,localStorage.setItem("".concat(this.settingsPrefix,"_auth_data"),JSON.stringify(i))}catch(e){console.error(e)}}},{key:"_loadSettings",value:function(){if(!0===this.persistSettings&&this.hasLocalStorage){var e=this.authData.state;this.authData=localStorage.getItem("".concat(this.settingsPrefix,"_auth_data")),this.authData?this.authData=JSON.parse(this.authData):this.authData={},this.authData.accessToken&&this.setAccessToken(this.authData.accessToken),this.authData.state=e}}},{key:"setEnvironment",value:function(e){this.config.setEnvironment(e)}},{key:"setHttpClient",value:function(e){if(!(e instanceof Tn))throw new Error("httpclient must be an instance of AbstractHttpClient. See DefaultltHttpClient for a prototype");this.httpClient=e}},{key:"getHttpClient",value:function(){return this.httpClient?this.httpClient:(this.httpClient=new Sn(this.timeout,this.proxyAgent),this.httpClient)}},{key:"setMTLSCertificates",value:function(e,i,t){throw new Error("Custom Agent Paths/ File System Access are not supported on Browser. Use setMTLSContents instead")}},{key:"setMTLSContents",value:function(e,i,t){var n={};e&&(n.cert=e),i&&(n.key=i),t&&(n.ca=t),n.rejectUnauthorized=!0,this.proxyAgent=new G.default.Agent(n),this.getHttpClient().setHttpsAgent(this.proxyAgent)}},{key:"setGateway",value:function(e){this.config.setGateway(e)}},{key:"loginImplicitGrant",value:function(e,i,t){var n=this,a=this._setValuesFromUrlHash();return this.clientId=e,this.redirectUri=i,t||(t={}),new Promise(function(e,i){if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),a&&a.error)return a.accessToken=void 0,n._saveSettings(a),i(new Error("[".concat(a.error,"] ").concat(a.error_description)));n._testTokenAccess().then(function(){!n.authData.state&&t.state&&(n.authData.state=t.state),e(n.authData)}).catch(function(e){var i={client_id:encodeURIComponent(n.clientId),redirect_uri:encodeURIComponent(n.redirectUri),response_type:"token"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var a=n._buildAuthUrl("oauth/authorize",i);window.location.replace(a)})})}},{key:"loginClientCredentialsGrant",value:function(e,i){var t=this;this.clientId=e;var n=X.from("".concat(e,":").concat(i)).toString("base64"),a=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(e,i){if("undefined"==typeof window){var o={Authorization:"Basic ".concat(n)},r=new Mn("".concat(a,"/oauth/token"),"POST",o,null,"grant_type=client_credentials",t.timeout);t.getHttpClient().request(r).then(function(i){t.config.logger.log("trace",i.status,"POST","".concat(a,"/oauth/token"),o,i.headers,{grant_type:"client_credentials"},void 0),t.config.logger.log("debug",i.status,"POST","".concat(a,"/oauth/token"),o,void 0,{grant_type:"client_credentials"},void 0),t.setAccessToken(i.data.access_token),t.authData.tokenExpiryTime=(new Date).getTime()+1e3*i.data.expires_in,t.authData.tokenExpiryTimeString=new Date(t.authData.tokenExpiryTime).toUTCString(),e(t.authData)}).catch(function(e){e.response&&t.config.logger.log("error",e.response.status,"POST","".concat(a,"/oauth/token"),o,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})}else i(new Error("The client credentials grant is not supported in a browser."))})}},{key:"loginSaml2BearerGrant",value:function(e,i,t,n){var a=this;this.clientId=e;var o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(r,l){if("undefined"==typeof window){var s=X.from(e+":"+i).toString("base64"),u=a._formAuthRequest(s,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});u.proxy=a.proxy;var p={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};u.then(function(e){a.config.logger.log("trace",e.status,"POST","".concat(o,"/oauth/token"),u.headers,e.headers,p,void 0),a.config.logger.log("debug",e.status,"POST","".concat(o,"/oauth/token"),u.headers,void 0,p,void 0);var i=e.data.access_token;a.setAccessToken(i),a.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),r(a.authData)}).catch(function(e){e.response&&a.config.logger.log("error",e.response.status,"POST","".concat(o,"/oauth/token"),u.headers,e.response.headers,p,e.response.data),l(e)})}else l(new Error("The saml2bearer grant is not supported in a browser."))})}},{key:"authorizePKCEGrant",value:function(e,i,t,n){var a=this;this.clientId=e;var o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));return new Promise(function(r,l){var s=x.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n}),u=new Mn("".concat(o,"/oauth/token"),"POST",{"Content-Type":"application/x-www-form-urlencoded"},null,s,a.timeout),p=a.getHttpClient(),c={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:n};p.request(u).then(function(e){a.config.logger.log("trace",e.status,"POST","".concat(o,"/oauth/token"),u.headers,e.headers,c,void 0),a.config.logger.log("debug",e.status,"POST","".concat(o,"/oauth/token"),u.headers,void 0,c,void 0);var i=e.data.access_token;a.setAccessToken(i),a.authData.tokenExpiryTime=(new Date).getTime()+1e3*e.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),r(a.authData)}).catch(function(e){e.response&&a.config.logger.log("error",e.response.status,"POST","".concat(o,"/oauth/token"),u.headers,e.response.headers,c,e.response.data),l(e)})})}},{key:"generatePKCECodeVerifier",value:function(e){if(e<43||e>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");var i="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-._~";return Array.from(crypto.getRandomValues(new Uint32Array(e))).map(function(e){return i[e%i.length]}).join("")}},{key:"computePKCECodeChallenge",value:function(e){if(e.length<43||e.length>128)throw new Error("PKCE Code Verifier (length) must be between 43 and 128 characters");var i=(new TextEncoder).encode(e);return new Promise(function(e,t){window.crypto.subtle.digest("SHA-256",i).then(function(i){var t=X.from(i).toString("base64").replaceAll("+","-").replaceAll("/","_");t=t.split("=")[0],e(t)}).catch(function(e){return t(new Error("Code Challenge Error ".concat(e)))})})}},{key:"loginPKCEGrant",value:function(e,i,t,n){var a=this;if(!this.hasLocalStorage&&!n)throw new Error("loginPKCEGrant requires Local Storage or codeVerifier as input parameter");var o=this._setValuesFromUrlQuery();return this.clientId=e,this.redirectUri=i,this.codeVerifier=n,t||(t={}),new Promise(function(e,i){if(t.org&&!t.provider?i(new Error("opts.provider must be set if opts.org is set")):t.provider&&!t.org&&i(new Error("opts.org must be set if opts.provider is set")),o&&o.error)return a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),a._saveSettings({accessToken:void 0}),i(new Error("[".concat(o.error,"] ").concat(o.error_description)));o&&o.code?(a.codeVerifier||a.hasLocalStorage&&(a.codeVerifier=sessionStorage.getItem("genesys_cloud_sdk_pkce_code_verifier")),a.authorizePKCEGrant(a.clientId,a.codeVerifier,o.code,a.redirectUri).then(function(){a._testTokenAccess().then(function(){!a.authData.state&&o.state&&(a.authData.state=o.state),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),e(a.authData)}).catch(function(e){return a._saveSettings({accessToken:void 0}),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error("[".concat(e.name,"] ").concat(e.msg)))})}).catch(function(e){return a._saveSettings({accessToken:void 0}),a.hasLocalStorage&&sessionStorage.removeItem("genesys_cloud_sdk_pkce_code_verifier"),i(new Error("[".concat(e.name,"] ").concat(e.msg)))})):a._testTokenAccess().then(function(){!a.authData.state&&t.state&&(a.authData.state=t.state),e(a.authData)}).catch(function(e){a.codeVerifier||(a.codeVerifier=a.generatePKCECodeVerifier(128),a.hasLocalStorage&&sessionStorage.setItem("genesys_cloud_sdk_pkce_code_verifier",a.codeVerifier)),a.computePKCECodeChallenge(a.codeVerifier).then(function(e){var i={client_id:encodeURIComponent(a.clientId),redirect_uri:encodeURIComponent(a.redirectUri),code_challenge:encodeURIComponent(e),response_type:"code",code_challenge_method:"S256"};t.state&&(i.state=encodeURIComponent(t.state)),t.org&&(i.org=encodeURIComponent(t.org)),t.provider&&(i.provider=encodeURIComponent(t.provider));var n=a._buildAuthUrl("oauth/authorize",i);window.location.replace(n)}).catch(function(e){return i(new Error("[".concat(e.name,"]")))})})})}},{key:"_setValuesFromUrlQuery",value:function(){if("undefined"!=typeof window&&window.location.search){var e={},i=new URLSearchParams(window.location.search),t=i.get("code"),n=i.get("error"),a=i.get("error_description"),o=i.get("state");if(n)return e.error=n,a&&(e.error_description=a),e;t&&(e.code=t,o&&(e.state=o));var r,l,s=window.location;return"replaceState"in history?history.replaceState("",document.title,s.pathname):(r=document.body.scrollTop,l=document.body.scrollLeft,history.pushState("",document.title,s.pathname),document.body.scrollTop=r,document.body.scrollLeft=l),e}}},{key:"loginCodeAuthorizationGrant",value:function(e,i,t,n){var a=this;return this.clientId=e,this.clientSecret=i,new Promise(function(o,r){if("undefined"==typeof window){var l=X.from(e+":"+i).toString("base64"),s=a._formAuthRequest(l,{grant_type:"authorization_code",code:t,redirect_uri:n});s.proxy=a.proxy;var u={grant_type:"authorization_code",code:t,redirect_uri:n};a._handleCodeAuthorizationResponse(s,u,o,r)}else r(new Error("The Code Authorization grant is not supported in a browser."))})}},{key:"refreshCodeAuthorizationGrant",value:function(e,i,t){var n=this;return new Promise(function(a,o){if("undefined"==typeof window){var r=X.from(e+":"+i).toString("base64"),l=n._formAuthRequest(r,{grant_type:"refresh_token",refresh_token:t});l.proxy=n.proxy;var s={grant_type:"refresh_token",refresh_token:t};n._handleCodeAuthorizationResponse(l,s,a,o)}else o(new Error("The Code Authorization grant is not supported in a browser."))})}},{key:"_handleCodeAuthorizationResponse",value:function(e,i,t,n){var a=this,o=this.config.getConfUrl("login","https://login.".concat(this.config.environment));e.then(function(n){a.config.logger.log("trace",n.status,"POST","".concat(o,"/oauth/token"),e.headers,n.headers,i,void 0),a.config.logger.log("debug",n.status,"POST","".concat(o,"/oauth/token"),e.headers,void 0,i,void 0);var r=n.data.access_token,l=n.data.refresh_token;a.setAccessToken(r),a.authData.refreshToken=l,a.authData.tokenExpiryTime=(new Date).getTime()+1e3*n.data.expires_in,a.authData.tokenExpiryTimeString=new Date(a.authData.tokenExpiryTime).toUTCString(),t(a.authData)}).catch(function(t){t.response&&a.config.logger.log("error",t.response.status,"POST","".concat(o,"/oauth/token"),e.headers,t.response.headers,i,t.response.data),n(t)})}},{key:"_formAuthRequest",value:function(e,i){var t=this.config.getConfUrl("login","https://login.".concat(this.config.environment)),n={Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},a=new Mn("".concat(t,"/oauth/token"),"POST",n,null,x.default.stringify(i),this.timeout);return this.getHttpClient().request(a)}},{key:"_handleExpiredAccessToken",value:function(){var e=this;return new Promise(function(i,t){"undefined"==typeof window?e.refreshInProgress?e._sleep(e.config.refresh_token_wait_max).then(function(){e.refreshInProgress?t(new Error("Token refresh took longer than ".concat(e.config.refresh_token_wait_max," seconds"))):i()}):(e.refreshInProgress=!0,e.refreshCodeAuthorizationGrant(e.clientId,e.clientSecret,e.authData.refreshToken).then(function(){e.refreshInProgress=!1,i()}).catch(function(i){e.refreshInProgress=!1,t(i)})):t(new Error("This method is not supported in a browser."))})}},{key:"_sleep",value:function(e){return new Promise(function(i){return setTimeout(i,e)})}},{key:"_testTokenAccess",value:function(){var e=this;return new Promise(function(i,t){e._loadSettings(),e.authentications["PureCloud OAuth"].accessToken?e.callApi("/api/v2/tokens/me","GET",null,null,null,null,null,["PureCloud OAuth"],["application/json"],["application/json"]).then(function(){i()}).catch(function(i){e._saveSettings({accessToken:void 0}),t(i)}):t(new Error("Token is not set"))})}},{key:"_setValuesFromUrlHash",value:function(){if("undefined"!=typeof window&&window.location.hash){var e=new RegExp("^#*(.+?)=(.+?)$","i"),i={};if(window.location.hash.split("&").forEach(function(t){var n=e.exec(t);n&&(i[n[1]]=decodeURIComponent(decodeURIComponent(n[2].replace(/\+/g,"%20"))))}),i.error)return i;if(i.access_token){var t={};i.state&&(t.state=i.state),i.expires_in&&(t.tokenExpiryTime=(new Date).getTime()+1e3*parseInt(i.expires_in.replace(/\+/g,"%20")),t.tokenExpiryTimeString=new Date(t.tokenExpiryTime).toUTCString()),t.accessToken=i.access_token.replace(/\+/g,"%20");var n,a,o=window.location;"replaceState"in history?history.replaceState("",document.title,o.pathname+o.search):(n=document.body.scrollTop,a=document.body.scrollLeft,o.hash="",document.body.scrollTop=n,document.body.scrollLeft=a),this._saveSettings(t)}}}},{key:"setAccessToken",value:function(e){this._saveSettings({accessToken:e})}},{key:"setStorageKey",value:function(e){this.storageKey=e,this.setAccessToken(this.authentications["PureCloud OAuth"].accessToken)}},{key:"logout",value:function(e){this.hasLocalStorage&&this._saveSettings({accessToken:void 0,state:void 0,tokenExpiryTime:void 0,tokenExpiryTimeString:void 0});var i={client_id:encodeURIComponent(this.clientId)};e&&(i.redirect_uri=encodeURI(e));var t=this._buildAuthUrl("logout",i);window.location.replace(t)}},{key:"_buildAuthUrl",value:function(e,i){i||(i={});var t=this.config.getConfUrl("login",this.config.authUrl);return Object.keys(i).reduce(function(e,t){return i[t]?"".concat(e,"&").concat(t,"=").concat(i[t]):e},"".concat(t,"/").concat(e,"?"))}},{key:"paramToString",value:function(e){return e?e instanceof Date?e.toJSON():e instanceof Boolean?e.toString().toLowerCase():e.toString():""}},{key:"serialize",value:function(e){var i={};for(var t in e)e.hasOwnProperty(t)&&void 0!==e[t]&&(i[encodeURIComponent(t)]=Array.isArray(e[t])?e[t].join(","):this.paramToString(e[t]));return i}},{key:"addHeaders",value:function(e){for(var i=arguments.length,t=new Array(i>1?i-1:0),n=1;n
-
+
diff --git a/build/package-lock.json b/build/package-lock.json
index d4f9a640..b3d53423 100644
--- a/build/package-lock.json
+++ b/build/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "purecloud-platform-client-v2",
- "version": "211.0.0",
+ "version": "211.1.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "purecloud-platform-client-v2",
- "version": "211.0.0",
+ "version": "211.1.0",
"license": "MIT",
"dependencies": {
"axios": "^1.7.4",
@@ -2389,9 +2389,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001689",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001689.tgz",
- "integrity": "sha512-CmeR2VBycfa+5/jOfnp/NpWPGd06nf1XYiefUvhXFfZE4GkRc9jv+eGPS4nT558WS/8lYCzV8SlANCIPvbWP1g==",
+ "version": "1.0.30001690",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001690.tgz",
+ "integrity": "sha512-5ExiE3qQN6oF8Clf8ifIDcMRCRE/dMGcETG/XGMD8/XiXm6HXQgQTh1yZYLXXpSOsEUlJm1Xr7kGULZTuGtP/w==",
"dev": true,
"funding": [
{
@@ -2935,9 +2935,9 @@
}
},
"node_modules/electron-to-chromium": {
- "version": "1.5.74",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.74.tgz",
- "integrity": "sha512-ck3//9RC+6oss/1Bh9tiAVFy5vfSKbRHAFh7Z3/eTRkEqJeWgymloShB17Vg3Z4nmDNp35vAd1BZ6CMW4Wt6Iw==",
+ "version": "1.5.75",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.75.tgz",
+ "integrity": "sha512-Lf3++DumRE/QmweGjU+ZcKqQ+3bKkU/qjaKYhIJKEOhgIO9Xs6IiAQFkfFoj+RhgDk4LUeNsLo6plExHqSyu6Q==",
"dev": true
},
"node_modules/elliptic": {
@@ -3706,9 +3706,9 @@
}
},
"node_modules/is-typed-array": {
- "version": "1.1.14",
- "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.14.tgz",
- "integrity": "sha512-lQUsHzcTb7rH57dajbOuZEuMDXjs9f04ZloER4QOpjpKcaw4f98BRUrs8aiO9Z4G7i7B0Xhgarg6SCgYcYi8Nw==",
+ "version": "1.1.15",
+ "resolved": "https://registry.npmjs.org/is-typed-array/-/is-typed-array-1.1.15.tgz",
+ "integrity": "sha512-p3EcsicXjit7SaskXHs1hA91QxgTw46Fv6EFKKGS5DRFLD8yKnohjF3hxoju94b/OcMZoQukzpPpBE9uLVKzgQ==",
"dev": true,
"dependencies": {
"which-typed-array": "^1.1.16"
@@ -4156,9 +4156,9 @@
}
},
"node_modules/math-intrinsics": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.0.0.tgz",
- "integrity": "sha512-4MqMiKP90ybymYvsut0CH2g4XWbfLtmlCkXmtmdcDCxNB+mQcu1w/1+L/VD7vi/PSv7X2JYV7SCcR+jiPXnQtA==",
+ "version": "1.1.0",
+ "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
+ "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==",
"engines": {
"node": ">= 0.4"
}
@@ -4495,14 +4495,16 @@
}
},
"node_modules/object.assign": {
- "version": "4.1.5",
- "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.5.tgz",
- "integrity": "sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ==",
+ "version": "4.1.7",
+ "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.7.tgz",
+ "integrity": "sha512-nK28WOo+QIjBkDduTINE4JkF/UJJKyf2EJxvJKfblDpyg0Q+pkOHNTL0Qwy6NP6FhE/EnzV73BxxqcJaXY9anw==",
"dev": true,
"dependencies": {
- "call-bind": "^1.0.5",
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
"define-properties": "^1.2.1",
- "has-symbols": "^1.0.3",
+ "es-object-atoms": "^1.0.0",
+ "has-symbols": "^1.1.0",
"object-keys": "^1.1.1"
},
"engines": {
@@ -4944,9 +4946,9 @@
}
},
"node_modules/resolve": {
- "version": "1.22.9",
- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.9.tgz",
- "integrity": "sha512-QxrmX1DzraFIi9PxdG5VkRfRwIgjwyud+z/iBwfRRrVmHc+P9Q7u2lSSpQ6bjr2gy5lrqIiU9vb6iAeGf2400A==",
+ "version": "1.22.10",
+ "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz",
+ "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==",
"dev": true,
"dependencies": {
"is-core-module": "^2.16.0",
@@ -4956,6 +4958,9 @@
"bin": {
"resolve": "bin/resolve"
},
+ "engines": {
+ "node": ">= 0.4"
+ },
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -5739,15 +5744,16 @@
}
},
"node_modules/which-typed-array": {
- "version": "1.1.16",
- "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.16.tgz",
- "integrity": "sha512-g+N+GAWiRj66DngFwHvISJd+ITsyphZvD1vChfVg6cEdnzy53GzB3oy0fUNlvhz7H7+MiqhYr26qxQShCpKTTQ==",
+ "version": "1.1.18",
+ "resolved": "https://registry.npmjs.org/which-typed-array/-/which-typed-array-1.1.18.tgz",
+ "integrity": "sha512-qEcY+KJYlWyLH9vNbsr6/5j59AXk5ni5aakf8ldzBvGde6Iz4sxZGkJyWSAueTG7QhOvNRYb1lDdFmL5Td0QKA==",
"dev": true,
"dependencies": {
"available-typed-arrays": "^1.0.7",
- "call-bind": "^1.0.7",
+ "call-bind": "^1.0.8",
+ "call-bound": "^1.0.3",
"for-each": "^0.3.3",
- "gopd": "^1.0.1",
+ "gopd": "^1.2.0",
"has-tostringtag": "^1.0.2"
},
"engines": {
diff --git a/build/package.json b/build/package.json
index f94bf854..7679353a 100644
--- a/build/package.json
+++ b/build/package.json
@@ -1,6 +1,6 @@
{
"name": "purecloud-platform-client-v2",
- "version": "211.0.0",
+ "version": "211.1.0",
"description": "A JavaScript library to interface with the PureCloud Platform API",
"license": "MIT",
"main": "dist/node/purecloud-platform-client-v2.js",
diff --git a/build/src/purecloud-platform-client-v2/ApiClient.js b/build/src/purecloud-platform-client-v2/ApiClient.js
index 710dacca..4479149e 100644
--- a/build/src/purecloud-platform-client-v2/ApiClient.js
+++ b/build/src/purecloud-platform-client-v2/ApiClient.js
@@ -7,7 +7,7 @@ import { default as qs } from 'qs';
/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 211.0.0
+ * @version 211.1.0
*/
class ApiClient {
/**
@@ -980,7 +980,7 @@ class ApiClient {
'Authorization': 'Basic ' + encodedData,
'Content-Type': 'application/x-www-form-urlencoded'
};
- var requestOptions = new HttpRequestOptions(loginBasePath, `POST`, headers, null, qs.stringify(data), this.timeout);
+ var requestOptions = new HttpRequestOptions(`${loginBasePath}/oauth/token`, `POST`, headers, null, qs.stringify(data), this.timeout);
const httpClient = this.getHttpClient();
return httpClient.request(requestOptions);
}
diff --git a/build/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js b/build/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js
index e771fa68..f756ec28 100644
--- a/build/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
/**
* AgentAssistants service.
* @module purecloud-platform-client-v2/api/AgentAssistantsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AgentCopilotApi.js b/build/src/purecloud-platform-client-v2/api/AgentCopilotApi.js
index 168317a2..0764f2e4 100644
--- a/build/src/purecloud-platform-client-v2/api/AgentCopilotApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AgentCopilotApi.js
@@ -5,7 +5,7 @@ class AgentCopilotApi {
/**
* AgentCopilot service.
* @module purecloud-platform-client-v2/api/AgentCopilotApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AgentUIApi.js b/build/src/purecloud-platform-client-v2/api/AgentUIApi.js
index 220a38ed..86825390 100644
--- a/build/src/purecloud-platform-client-v2/api/AgentUIApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AgentUIApi.js
@@ -5,7 +5,7 @@ class AgentUIApi {
/**
* AgentUI service.
* @module purecloud-platform-client-v2/api/AgentUIApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AlertingApi.js b/build/src/purecloud-platform-client-v2/api/AlertingApi.js
index 1b7a4647..5e9008a9 100644
--- a/build/src/purecloud-platform-client-v2/api/AlertingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AlertingApi.js
@@ -5,7 +5,7 @@ class AlertingApi {
/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js b/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js
index 39b54ca1..95fdaa6c 100644
--- a/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js
@@ -5,7 +5,7 @@ class AnalyticsApi {
/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ArchitectApi.js b/build/src/purecloud-platform-client-v2/api/ArchitectApi.js
index 7e86dc45..2dde9ae3 100644
--- a/build/src/purecloud-platform-client-v2/api/ArchitectApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ArchitectApi.js
@@ -5,7 +5,7 @@ class ArchitectApi {
/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AuditApi.js b/build/src/purecloud-platform-client-v2/api/AuditApi.js
index a8948ce0..3721fb96 100644
--- a/build/src/purecloud-platform-client-v2/api/AuditApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AuditApi.js
@@ -5,7 +5,7 @@ class AuditApi {
/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js b/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js
index f0028b39..2157feb7 100644
--- a/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js
@@ -5,7 +5,7 @@ class AuthorizationApi {
/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/BillingApi.js b/build/src/purecloud-platform-client-v2/api/BillingApi.js
index 8cef5381..6e19f641 100644
--- a/build/src/purecloud-platform-client-v2/api/BillingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/BillingApi.js
@@ -5,7 +5,7 @@ class BillingApi {
/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js b/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js
index 5aeded9b..b995d29e 100644
--- a/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js
+++ b/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js
@@ -5,7 +5,7 @@ class CarrierServicesApi {
/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ChatApi.js b/build/src/purecloud-platform-client-v2/api/ChatApi.js
index 87d42428..6e38bdd6 100644
--- a/build/src/purecloud-platform-client-v2/api/ChatApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ChatApi.js
@@ -5,7 +5,7 @@ class ChatApi {
/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/CoachingApi.js b/build/src/purecloud-platform-client-v2/api/CoachingApi.js
index 4a757de2..775d00f7 100644
--- a/build/src/purecloud-platform-client-v2/api/CoachingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/CoachingApi.js
@@ -5,7 +5,7 @@ class CoachingApi {
/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js b/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js
index 8b2ee2f4..635d9e4e 100644
--- a/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js
@@ -5,7 +5,7 @@ class ContentManagementApi {
/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ConversationsApi.js b/build/src/purecloud-platform-client-v2/api/ConversationsApi.js
index 3e1cb7a8..01f00550 100644
--- a/build/src/purecloud-platform-client-v2/api/ConversationsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ConversationsApi.js
@@ -5,7 +5,7 @@ class ConversationsApi {
/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js b/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js
index a8a8aac9..ed83c3ef 100644
--- a/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js
@@ -5,7 +5,7 @@ class DataExtensionsApi {
/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/DataPrivacyApi.js b/build/src/purecloud-platform-client-v2/api/DataPrivacyApi.js
index ebdcd0c1..aea553c3 100644
--- a/build/src/purecloud-platform-client-v2/api/DataPrivacyApi.js
+++ b/build/src/purecloud-platform-client-v2/api/DataPrivacyApi.js
@@ -5,7 +5,7 @@ class DataPrivacyApi {
/**
* DataPrivacy service.
* @module purecloud-platform-client-v2/api/DataPrivacyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/DownloadsApi.js b/build/src/purecloud-platform-client-v2/api/DownloadsApi.js
index e35fcb1e..98966f95 100644
--- a/build/src/purecloud-platform-client-v2/api/DownloadsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/DownloadsApi.js
@@ -5,7 +5,7 @@ class DownloadsApi {
/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/EmailsApi.js b/build/src/purecloud-platform-client-v2/api/EmailsApi.js
index d07852c0..e773091f 100644
--- a/build/src/purecloud-platform-client-v2/api/EmailsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/EmailsApi.js
@@ -5,7 +5,7 @@ class EmailsApi {
/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js b/build/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js
index 54df9c90..8cdc3aac 100644
--- a/build/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js
+++ b/build/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js
@@ -5,7 +5,7 @@ class EmployeeEngagementApi {
/**
* EmployeeEngagement service.
* @module purecloud-platform-client-v2/api/EmployeeEngagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/EventsApi.js b/build/src/purecloud-platform-client-v2/api/EventsApi.js
index a886df8e..1f84bdf9 100644
--- a/build/src/purecloud-platform-client-v2/api/EventsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/EventsApi.js
@@ -5,7 +5,7 @@ class EventsApi {
/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js b/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js
index 7f629e9e..7aa1d794 100644
--- a/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js
@@ -5,7 +5,7 @@ class ExternalContactsApi {
/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/FaxApi.js b/build/src/purecloud-platform-client-v2/api/FaxApi.js
index 8aebb71f..ecf4cac4 100644
--- a/build/src/purecloud-platform-client-v2/api/FaxApi.js
+++ b/build/src/purecloud-platform-client-v2/api/FaxApi.js
@@ -5,7 +5,7 @@ class FaxApi {
/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/FlowsApi.js b/build/src/purecloud-platform-client-v2/api/FlowsApi.js
index ccb73067..96d869c3 100644
--- a/build/src/purecloud-platform-client-v2/api/FlowsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/FlowsApi.js
@@ -5,7 +5,7 @@ class FlowsApi {
/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/GamificationApi.js b/build/src/purecloud-platform-client-v2/api/GamificationApi.js
index 63c07c87..9ec9da05 100644
--- a/build/src/purecloud-platform-client-v2/api/GamificationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/GamificationApi.js
@@ -5,7 +5,7 @@ class GamificationApi {
/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js b/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js
index 01fe3bd0..7abfc947 100644
--- a/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/GeolocationApi.js b/build/src/purecloud-platform-client-v2/api/GeolocationApi.js
index a817c7c6..ba4bd58c 100644
--- a/build/src/purecloud-platform-client-v2/api/GeolocationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/GeolocationApi.js
@@ -5,7 +5,7 @@ class GeolocationApi {
/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/GreetingsApi.js b/build/src/purecloud-platform-client-v2/api/GreetingsApi.js
index ca60e64d..22c9ceba 100644
--- a/build/src/purecloud-platform-client-v2/api/GreetingsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/GreetingsApi.js
@@ -5,7 +5,7 @@ class GreetingsApi {
/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/GroupsApi.js b/build/src/purecloud-platform-client-v2/api/GroupsApi.js
index 82d6fd73..3727cd2f 100644
--- a/build/src/purecloud-platform-client-v2/api/GroupsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/GroupsApi.js
@@ -5,7 +5,7 @@ class GroupsApi {
/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js b/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js
index e7e0ec72..1a4f76ff 100644
--- a/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js
+++ b/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js
@@ -5,7 +5,7 @@ class IdentityProviderApi {
/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js b/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js
index 50a60f5b..f6386758 100644
--- a/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js
+++ b/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js b/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js
index ae584d2e..d5f60ccb 100644
--- a/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js
@@ -5,7 +5,7 @@ class IntegrationsApi {
/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/JourneyApi.js b/build/src/purecloud-platform-client-v2/api/JourneyApi.js
index c4d78429..4d7ff1c1 100644
--- a/build/src/purecloud-platform-client-v2/api/JourneyApi.js
+++ b/build/src/purecloud-platform-client-v2/api/JourneyApi.js
@@ -5,7 +5,7 @@ class JourneyApi {
/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js b/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js
index adab9b4e..f51f390c 100644
--- a/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js
+++ b/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js
@@ -5,7 +5,7 @@ class KnowledgeApi {
/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js b/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js
index 6b6ee20b..1740621c 100644
--- a/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LanguagesApi.js b/build/src/purecloud-platform-client-v2/api/LanguagesApi.js
index 360295c2..95c23da0 100644
--- a/build/src/purecloud-platform-client-v2/api/LanguagesApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LanguagesApi.js
@@ -5,7 +5,7 @@ class LanguagesApi {
/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LearningApi.js b/build/src/purecloud-platform-client-v2/api/LearningApi.js
index 5e827877..bb4ef2a5 100644
--- a/build/src/purecloud-platform-client-v2/api/LearningApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LearningApi.js
@@ -5,7 +5,7 @@ class LearningApi {
/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LicenseApi.js b/build/src/purecloud-platform-client-v2/api/LicenseApi.js
index 9971a97c..da9e9925 100644
--- a/build/src/purecloud-platform-client-v2/api/LicenseApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LicenseApi.js
@@ -5,7 +5,7 @@ class LicenseApi {
/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LocationsApi.js b/build/src/purecloud-platform-client-v2/api/LocationsApi.js
index 416bf8c4..849e1ed2 100644
--- a/build/src/purecloud-platform-client-v2/api/LocationsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LocationsApi.js
@@ -5,7 +5,7 @@ class LocationsApi {
/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js b/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js
index fcc52a72..f8197673 100644
--- a/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js
+++ b/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js
@@ -5,7 +5,7 @@ class LogCaptureApi {
/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/MessagingApi.js b/build/src/purecloud-platform-client-v2/api/MessagingApi.js
index dc4f2f4f..1c248aca 100644
--- a/build/src/purecloud-platform-client-v2/api/MessagingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/MessagingApi.js
@@ -5,7 +5,7 @@ class MessagingApi {
/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js b/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js
index 83ab1f76..bee88b36 100644
--- a/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js
+++ b/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js
@@ -5,7 +5,7 @@ class MobileDevicesApi {
/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/NotificationsApi.js b/build/src/purecloud-platform-client-v2/api/NotificationsApi.js
index 26f90108..642e2694 100644
--- a/build/src/purecloud-platform-client-v2/api/NotificationsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/NotificationsApi.js
@@ -5,7 +5,7 @@ class NotificationsApi {
/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/OAuthApi.js b/build/src/purecloud-platform-client-v2/api/OAuthApi.js
index 5f774801..7577b1f4 100644
--- a/build/src/purecloud-platform-client-v2/api/OAuthApi.js
+++ b/build/src/purecloud-platform-client-v2/api/OAuthApi.js
@@ -5,7 +5,7 @@ class OAuthApi {
/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ObjectsApi.js b/build/src/purecloud-platform-client-v2/api/ObjectsApi.js
index 82f5a414..a00844e8 100644
--- a/build/src/purecloud-platform-client-v2/api/ObjectsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ObjectsApi.js
@@ -5,7 +5,7 @@ class ObjectsApi {
/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js b/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js
index 947c48bf..cfee47d1 100644
--- a/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js
@@ -5,7 +5,7 @@ class OperationalEventsApi {
/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/OrganizationApi.js b/build/src/purecloud-platform-client-v2/api/OrganizationApi.js
index c161f430..bcbaf9df 100644
--- a/build/src/purecloud-platform-client-v2/api/OrganizationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/OrganizationApi.js
@@ -5,7 +5,7 @@ class OrganizationApi {
/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js b/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js
index 7abb6de2..eda5e6d7 100644
--- a/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js
@@ -5,7 +5,7 @@ class OrganizationAuthorizationApi {
/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/OutboundApi.js b/build/src/purecloud-platform-client-v2/api/OutboundApi.js
index 1a9892fb..ce53920b 100644
--- a/build/src/purecloud-platform-client-v2/api/OutboundApi.js
+++ b/build/src/purecloud-platform-client-v2/api/OutboundApi.js
@@ -5,7 +5,7 @@ class OutboundApi {
/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/PresenceApi.js b/build/src/purecloud-platform-client-v2/api/PresenceApi.js
index 41ceb40f..d83a11e8 100644
--- a/build/src/purecloud-platform-client-v2/api/PresenceApi.js
+++ b/build/src/purecloud-platform-client-v2/api/PresenceApi.js
@@ -5,7 +5,7 @@ class PresenceApi {
/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js b/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js
index 43b6fcd1..27e33921 100644
--- a/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js
@@ -5,7 +5,7 @@ class ProcessAutomationApi {
/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/QualityApi.js b/build/src/purecloud-platform-client-v2/api/QualityApi.js
index 7886766f..0ba010bd 100644
--- a/build/src/purecloud-platform-client-v2/api/QualityApi.js
+++ b/build/src/purecloud-platform-client-v2/api/QualityApi.js
@@ -5,7 +5,7 @@ class QualityApi {
/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/RecordingApi.js b/build/src/purecloud-platform-client-v2/api/RecordingApi.js
index 15c884a6..af218260 100644
--- a/build/src/purecloud-platform-client-v2/api/RecordingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/RecordingApi.js
@@ -5,7 +5,7 @@ class RecordingApi {
/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js b/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js
index 04b2412b..8728ba6b 100644
--- a/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js
@@ -5,7 +5,7 @@ class ResponseManagementApi {
/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/RoutingApi.js b/build/src/purecloud-platform-client-v2/api/RoutingApi.js
index 9212d67a..66031479 100644
--- a/build/src/purecloud-platform-client-v2/api/RoutingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/RoutingApi.js
@@ -5,7 +5,7 @@ class RoutingApi {
/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SCIMApi.js b/build/src/purecloud-platform-client-v2/api/SCIMApi.js
index fbf53c97..0a1f93f5 100644
--- a/build/src/purecloud-platform-client-v2/api/SCIMApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SCIMApi.js
@@ -5,7 +5,7 @@ class SCIMApi {
/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js b/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js
index 6fb2088d..76d8b57e 100644
--- a/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js
@@ -5,7 +5,7 @@ class ScreenRecordingApi {
/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/ScriptsApi.js b/build/src/purecloud-platform-client-v2/api/ScriptsApi.js
index 1fb4eccc..0a172344 100644
--- a/build/src/purecloud-platform-client-v2/api/ScriptsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/ScriptsApi.js
@@ -5,7 +5,7 @@ class ScriptsApi {
/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SearchApi.js b/build/src/purecloud-platform-client-v2/api/SearchApi.js
index 111e696a..1f3520b4 100644
--- a/build/src/purecloud-platform-client-v2/api/SearchApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SearchApi.js
@@ -5,7 +5,7 @@ class SearchApi {
/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SettingsApi.js b/build/src/purecloud-platform-client-v2/api/SettingsApi.js
index 6fad70ac..c29eda32 100644
--- a/build/src/purecloud-platform-client-v2/api/SettingsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SettingsApi.js
@@ -5,7 +5,7 @@ class SettingsApi {
/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SocialMediaApi.js b/build/src/purecloud-platform-client-v2/api/SocialMediaApi.js
index 68973a38..e6aa5d42 100644
--- a/build/src/purecloud-platform-client-v2/api/SocialMediaApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SocialMediaApi.js
@@ -5,7 +5,7 @@ class SocialMediaApi {
/**
* SocialMedia service.
* @module purecloud-platform-client-v2/api/SocialMediaApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js b/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js
index 54a44d34..8d3237b9 100644
--- a/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js
@@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi {
/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/StationsApi.js b/build/src/purecloud-platform-client-v2/api/StationsApi.js
index 10ccd25d..8b9a33d2 100644
--- a/build/src/purecloud-platform-client-v2/api/StationsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/StationsApi.js
@@ -5,7 +5,7 @@ class StationsApi {
/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/SuggestApi.js b/build/src/purecloud-platform-client-v2/api/SuggestApi.js
index 7699a3ac..2597321b 100644
--- a/build/src/purecloud-platform-client-v2/api/SuggestApi.js
+++ b/build/src/purecloud-platform-client-v2/api/SuggestApi.js
@@ -5,7 +5,7 @@ class SuggestApi {
/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js b/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js
index 04e60a01..ee1f2a64 100644
--- a/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js
@@ -5,7 +5,7 @@ class TaskManagementApi {
/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TeamsApi.js b/build/src/purecloud-platform-client-v2/api/TeamsApi.js
index ef90f27c..1a88237f 100644
--- a/build/src/purecloud-platform-client-v2/api/TeamsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TeamsApi.js
@@ -5,7 +5,7 @@ class TeamsApi {
/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TelephonyApi.js b/build/src/purecloud-platform-client-v2/api/TelephonyApi.js
index 051d7304..2cf3b3c7 100644
--- a/build/src/purecloud-platform-client-v2/api/TelephonyApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TelephonyApi.js
@@ -5,7 +5,7 @@ class TelephonyApi {
/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js b/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js
index 8c0b746a..185369ff 100644
--- a/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js
@@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi {
/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TextbotsApi.js b/build/src/purecloud-platform-client-v2/api/TextbotsApi.js
index 6fa2675a..8448f7d7 100644
--- a/build/src/purecloud-platform-client-v2/api/TextbotsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TextbotsApi.js
@@ -5,7 +5,7 @@ class TextbotsApi {
/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/TokensApi.js b/build/src/purecloud-platform-client-v2/api/TokensApi.js
index 16be6f18..4a69de5b 100644
--- a/build/src/purecloud-platform-client-v2/api/TokensApi.js
+++ b/build/src/purecloud-platform-client-v2/api/TokensApi.js
@@ -5,7 +5,7 @@ class TokensApi {
/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/UploadsApi.js b/build/src/purecloud-platform-client-v2/api/UploadsApi.js
index 6e43a76f..dd969068 100644
--- a/build/src/purecloud-platform-client-v2/api/UploadsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/UploadsApi.js
@@ -5,7 +5,7 @@ class UploadsApi {
/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/UsageApi.js b/build/src/purecloud-platform-client-v2/api/UsageApi.js
index a17eb96d..b4b7aed2 100644
--- a/build/src/purecloud-platform-client-v2/api/UsageApi.js
+++ b/build/src/purecloud-platform-client-v2/api/UsageApi.js
@@ -5,7 +5,7 @@ class UsageApi {
/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js b/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js
index 061da8ec..44e9ca05 100644
--- a/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js
@@ -5,7 +5,7 @@ class UserRecordingsApi {
/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/UsersApi.js b/build/src/purecloud-platform-client-v2/api/UsersApi.js
index b355dec5..6fa13c47 100644
--- a/build/src/purecloud-platform-client-v2/api/UsersApi.js
+++ b/build/src/purecloud-platform-client-v2/api/UsersApi.js
@@ -5,7 +5,7 @@ class UsersApi {
/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js b/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js
index 2756d416..00faed8c 100644
--- a/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js
+++ b/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js
@@ -5,7 +5,7 @@ class UtilitiesApi {
/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/VoicemailApi.js b/build/src/purecloud-platform-client-v2/api/VoicemailApi.js
index d7526c18..60ec727b 100644
--- a/build/src/purecloud-platform-client-v2/api/VoicemailApi.js
+++ b/build/src/purecloud-platform-client-v2/api/VoicemailApi.js
@@ -5,7 +5,7 @@ class VoicemailApi {
/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/WebChatApi.js b/build/src/purecloud-platform-client-v2/api/WebChatApi.js
index 76cf10a1..26ac7380 100644
--- a/build/src/purecloud-platform-client-v2/api/WebChatApi.js
+++ b/build/src/purecloud-platform-client-v2/api/WebChatApi.js
@@ -5,7 +5,7 @@ class WebChatApi {
/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js b/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js
index cbe175ac..772cea5f 100644
--- a/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js
@@ -5,7 +5,7 @@ class WebDeploymentsApi {
/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js b/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js
index c9f7073a..c3593409 100644
--- a/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js
+++ b/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js
@@ -5,7 +5,7 @@ class WebMessagingApi {
/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/WidgetsApi.js b/build/src/purecloud-platform-client-v2/api/WidgetsApi.js
index ebbbb999..2acad994 100644
--- a/build/src/purecloud-platform-client-v2/api/WidgetsApi.js
+++ b/build/src/purecloud-platform-client-v2/api/WidgetsApi.js
@@ -5,7 +5,7 @@ class WidgetsApi {
/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js b/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js
index 72f02ee0..6cbd51ef 100644
--- a/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js
+++ b/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js
@@ -5,7 +5,7 @@ class WorkforceManagementApi {
/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 211.0.0
+ * @version 211.1.0
*/
/**
diff --git a/build/src/purecloud-platform-client-v2/index.js b/build/src/purecloud-platform-client-v2/index.js
index e38316df..aeaaae17 100644
--- a/build/src/purecloud-platform-client-v2/index.js
+++ b/build/src/purecloud-platform-client-v2/index.js
@@ -113,7 +113,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js';
*
*
* @module purecloud-platform-client-v2/index
- * @version 211.0.0
+ * @version 211.1.0
*/
class platformClient {
constructor() {
diff --git a/version.json b/version.json
index 09b016ac..aeb6bbc8 100644
--- a/version.json
+++ b/version.json
@@ -1,9 +1,9 @@
{
"major": 211,
- "minor": 0,
+ "minor": 1,
"point": 0,
"prerelease": "",
"apiVersion": 0,
- "display": "211.0.0",
- "displayFull": "211.0.0"
+ "display": "211.1.0",
+ "displayFull": "211.1.0"
}
\ No newline at end of file