From f4b21ccc65c12418222492ff91be7ff23db3f379 Mon Sep 17 00:00:00 2001
From: PureCloud Jenkins
Date: Sun, 16 Jun 2024 06:36:48 +0000
Subject: [PATCH] 195.0.0
---
README.md | 4 +-
build/.openapi-generator/FILES | 19 +-
build/APIData.json | 382 +++++++++-
build/README.md | 4 +-
.../dist/node/purecloud-platform-client-v2.js | 705 +++++++++++++++---
.../web-amd/purecloud-platform-client-v2.js | 705 +++++++++++++++---
.../purecloud-platform-client-v2.min.js | 2 +-
build/dist/web-cjs/bundle.js | 301 +++++---
.../web-cjs/purecloud-platform-client-v2.js | 301 +++++---
.../purecloud-platform-client-v2.min.js | 2 +-
build/docs/AnalyticsApi.md | 283 ++++++-
build/docs/ConversationsApi.md | 111 ++-
build/docs/GroupsApi.md | 2 +-
build/docs/JourneyApi.md | 4 +-
build/docs/KnowledgeApi.md | 48 +-
build/docs/LearningApi.md | 330 ++++++++
build/docs/OrganizationApi.md | 2 +-
build/docs/RoutingApi.md | 12 -
build/docs/SpeechTextAnalyticsApi.md | 326 ++++++++
build/docs/UsersApi.md | 2 +-
build/docs/index.md | 4 +-
build/docs/releaseNotes.md | 477 +++++++++---
build/index.d.ts | 700 +++++++++--------
build/package-lock.json | 28 +-
build/package.json | 2 +-
.../purecloud-platform-client-v2/ApiClient.js | 5 +-
.../api/AlertingApi.js | 2 +-
.../api/AnalyticsApi.js | 150 +++-
.../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 | 58 +-
.../api/DataExtensionsApi.js | 2 +-
.../api/DownloadsApi.js | 2 +-
.../api/EmailsApi.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 | 5 +-
.../api/LanguageUnderstandingApi.js | 2 +-
.../api/LanguagesApi.js | 2 +-
.../api/LearningApi.js | 175 ++++-
.../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 | 8 +-
.../api/SCIMApi.js | 2 +-
.../api/ScreenRecordingApi.js | 2 +-
.../api/ScriptsApi.js | 2 +-
.../api/SearchApi.js | 2 +-
.../api/SettingsApi.js | 2 +-
.../api/SpeechTextAnalyticsApi.js | 166 ++++-
.../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 +-
releaseNotes.md | 477 +++++++++---
swagger.json | 2 +-
version.json | 6 +-
104 files changed, 4751 insertions(+), 1195 deletions(-)
diff --git a/README.md b/README.md
index 393b58f4..69171925 100644
--- a/README.md
+++ b/README.md
@@ -31,7 +31,7 @@ For direct use in a browser script:
```html
-
+
diff --git a/build/.openapi-generator/FILES b/build/.openapi-generator/FILES
index c672bb98..e10f1d4a 100644
--- a/build/.openapi-generator/FILES
+++ b/build/.openapi-generator/FILES
@@ -351,6 +351,7 @@ docs/deleteRoutingUtilizationTag-example.txt
docs/deleteRoutingWrapupcode-example.txt
docs/deleteScimUser-example.txt
docs/deleteScimV2User-example.txt
+docs/deleteSpeechandtextanalyticsCategory-example.txt
docs/deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId-example.txt
docs/deleteSpeechandtextanalyticsProgram-example.txt
docs/deleteSpeechandtextanalyticsSentimentfeedback-example.txt
@@ -423,6 +424,8 @@ docs/getAlertingInteractionstatsRules-example.txt
docs/getAlertingRule-example.txt
docs/getAnalyticsActionsAggregatesJob-example.txt
docs/getAnalyticsActionsAggregatesJobResults-example.txt
+docs/getAnalyticsAgentcopilotsAggregatesJob-example.txt
+docs/getAnalyticsAgentcopilotsAggregatesJobResults-example.txt
docs/getAnalyticsBotflowDivisionsReportingturns-example.txt
docs/getAnalyticsBotflowReportingturns-example.txt
docs/getAnalyticsBotflowSessions-example.txt
@@ -464,6 +467,7 @@ docs/getAnalyticsReportingDashboardsUsers-example.txt
docs/getAnalyticsReportingExports-example.txt
docs/getAnalyticsReportingExportsMetadata-example.txt
docs/getAnalyticsReportingSettings-example.txt
+docs/getAnalyticsReportingSettingsDashboardsQuery-example.txt
docs/getAnalyticsReportingSettingsUserDashboards-example.txt
docs/getAnalyticsResolutionsAggregatesJob-example.txt
docs/getAnalyticsResolutionsAggregatesJobResults-example.txt
@@ -666,7 +670,6 @@ docs/getConversationsMessagingIntegrationsWhatsappIntegrationId-example.txt
docs/getConversationsMessagingSetting-example.txt
docs/getConversationsMessagingSettings-example.txt
docs/getConversationsMessagingSettingsDefault-example.txt
-docs/getConversationsMessagingSticker-example.txt
docs/getConversationsMessagingSupportedcontent-example.txt
docs/getConversationsMessagingSupportedcontentDefault-example.txt
docs/getConversationsMessagingSupportedcontentSupportedContentId-example.txt
@@ -988,15 +991,18 @@ docs/getLanguageunderstandingMinerTopics-example.txt
docs/getLanguageunderstandingMiners-example.txt
docs/getLanguageunderstandingSettings-example.txt
docs/getLearningAssignment-example.txt
+docs/getLearningAssignmentStep-example.txt
docs/getLearningAssignments-example.txt
docs/getLearningAssignmentsMe-example.txt
docs/getLearningModule-example.txt
docs/getLearningModuleJob-example.txt
+docs/getLearningModulePreview-example.txt
docs/getLearningModuleRule-example.txt
docs/getLearningModuleVersion-example.txt
docs/getLearningModules-example.txt
docs/getLearningModulesAssignments-example.txt
docs/getLearningModulesCoverartCoverArtId-example.txt
+docs/getLearningScormScormId-example.txt
docs/getLicenseDefinition-example.txt
docs/getLicenseDefinitions-example.txt
docs/getLicenseToggle-example.txt
@@ -1290,7 +1296,10 @@ docs/getSearch-example.txt
docs/getSearchSuggest-example.txt
docs/getSearchSuggest-example.txt
docs/getSettingsExecutiondata-example.txt
+docs/getSpeechandtextanalyticsCategories-example.txt
+docs/getSpeechandtextanalyticsCategory-example.txt
docs/getSpeechandtextanalyticsConversation-example.txt
+docs/getSpeechandtextanalyticsConversationCategories-example.txt
docs/getSpeechandtextanalyticsConversationCommunicationTranscripturl-example.txt
docs/getSpeechandtextanalyticsConversationCommunicationTranscripturls-example.txt
docs/getSpeechandtextanalyticsDictionaryfeedback-example.txt
@@ -1674,6 +1683,7 @@ docs/patchLanguageunderstandingDomain-example.txt
docs/patchLanguageunderstandingMinerDraft-example.txt
docs/patchLearningAssignment-example.txt
docs/patchLearningAssignmentReschedule-example.txt
+docs/patchLearningAssignmentStep-example.txt
docs/patchLearningModuleUserAssignments-example.txt
docs/patchLocation-example.txt
docs/patchMessagingSetting-example.txt
@@ -1761,6 +1771,8 @@ docs/postAlertingRulesBulkRemove-example.txt
docs/postAlertingRulesQuery-example.txt
docs/postAnalyticsActionsAggregatesJobs-example.txt
docs/postAnalyticsActionsAggregatesQuery-example.txt
+docs/postAnalyticsAgentcopilotsAggregatesJobs-example.txt
+docs/postAnalyticsAgentcopilotsAggregatesQuery-example.txt
docs/postAnalyticsBotsAggregatesJobs-example.txt
docs/postAnalyticsBotsAggregatesQuery-example.txt
docs/postAnalyticsConversationDetailsProperties-example.txt
@@ -1927,6 +1939,7 @@ docs/postConversationsEmailMessages-example.txt
docs/postConversationsEmailMessagesDraftAttachmentsCopy-example.txt
docs/postConversationsEmailParticipantCommunicationWrapup-example.txt
docs/postConversationsEmailParticipantReplace-example.txt
+docs/postConversationsEmailReconnect-example.txt
docs/postConversationsEmails-example.txt
docs/postConversationsEmailsAgentless-example.txt
docs/postConversationsFaxes-example.txt
@@ -2124,6 +2137,7 @@ docs/postLearningModulePublish-example.txt
docs/postLearningModules-example.txt
docs/postLearningRulesQuery-example.txt
docs/postLearningScheduleslotsQuery-example.txt
+docs/postLearningScorm-example.txt
docs/postLicenseInfer-example.txt
docs/postLicenseOrganization-example.txt
docs/postLicenseToggle-example.txt
@@ -2251,6 +2265,7 @@ docs/postSearch-example.txt
docs/postSearch-example.txt
docs/postSearchSuggest-example.txt
docs/postSearchSuggest-example.txt
+docs/postSpeechandtextanalyticsCategories-example.txt
docs/postSpeechandtextanalyticsDictionaryfeedback-example.txt
docs/postSpeechandtextanalyticsPrograms-example.txt
docs/postSpeechandtextanalyticsProgramsGeneralJobs-example.txt
@@ -2507,6 +2522,7 @@ docs/putIntegrationsSpeechTtsSettings-example.txt
docs/putIntegrationsUnifiedcommunicationThirdpartypresences-example.txt
docs/putLanguageunderstandingDomainVersion-example.txt
docs/putLearningModule-example.txt
+docs/putLearningModulePreview-example.txt
docs/putLearningModuleRule-example.txt
docs/putMessagingSettingsDefault-example.txt
docs/putMobiledevice-example.txt
@@ -2585,6 +2601,7 @@ docs/putScimGroup-example.txt
docs/putScimUser-example.txt
docs/putScimV2Group-example.txt
docs/putScimV2User-example.txt
+docs/putSpeechandtextanalyticsCategory-example.txt
docs/putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId-example.txt
docs/putSpeechandtextanalyticsProgram-example.txt
docs/putSpeechandtextanalyticsProgramMappings-example.txt
diff --git a/build/APIData.json b/build/APIData.json
index 417fef94..95e22b0c 100644
--- a/build/APIData.json
+++ b/build/APIData.json
@@ -426,6 +426,39 @@
"return": "ActionAsyncAggregateQueryResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet jobId = \"jobId_example\"; // String | jobId\nlet opts = { \n \"cursor\": \"cursor_example\" // String | Cursor token to retrieve next page\n};\n\n// Fetch a page of results for an async aggregates query\napiInstance.getAnalyticsActionsAggregatesJobResults(jobId, opts)\n .then((data) => {\n console.log(`getAnalyticsActionsAggregatesJobResults success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAnalyticsActionsAggregatesJobResults\");\n console.error(err);\n });"
},
+ "getanalyticsagentcopilotsaggregatesjob": {
+ "operationId": "getanalyticsagentcopilotsaggregatesjob",
+ "functionName": "getAnalyticsAgentcopilotsAggregatesJob",
+ "signature": "getAnalyticsAgentcopilotsAggregatesJob(jobId)",
+ "parameters": [
+ {
+ "name": "jobId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "return": "AsyncQueryStatus",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet jobId = \"jobId_example\"; // String | jobId\n\n// Get status for async query for agent copilot aggregates\napiInstance.getAnalyticsAgentcopilotsAggregatesJob(jobId)\n .then((data) => {\n console.log(`getAnalyticsAgentcopilotsAggregatesJob success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAnalyticsAgentcopilotsAggregatesJob\");\n console.error(err);\n });"
+ },
+ "getanalyticsagentcopilotsaggregatesjobresults": {
+ "operationId": "getanalyticsagentcopilotsaggregatesjobresults",
+ "functionName": "getAnalyticsAgentcopilotsAggregatesJobResults",
+ "signature": "getAnalyticsAgentcopilotsAggregatesJobResults(jobId, cursor)",
+ "parameters": [
+ {
+ "name": "jobId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "cursor",
+ "type": "String",
+ "required": "false"
+ }
+ ],
+ "return": "AgentCopilotAsyncAggregateQueryResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet jobId = \"jobId_example\"; // String | jobId\nlet opts = { \n \"cursor\": \"cursor_example\" // String | Cursor token to retrieve next page\n};\n\n// Fetch a page of results for an async aggregates query\napiInstance.getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts)\n .then((data) => {\n console.log(`getAnalyticsAgentcopilotsAggregatesJobResults success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAnalyticsAgentcopilotsAggregatesJobResults\");\n console.error(err);\n });"
+ },
"getanalyticsbotflowdivisionsreportingturns": {
"operationId": "getanalyticsbotflowdivisionsreportingturns",
"functionName": "getAnalyticsBotflowDivisionsReportingturns",
@@ -955,6 +988,40 @@
"return": "AnalyticsReportingSettings",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\n// Get AnalyticsReportingSettings for an organization\napiInstance.getAnalyticsReportingSettings()\n .then((data) => {\n console.log(`getAnalyticsReportingSettings success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAnalyticsReportingSettings\");\n console.error(err);\n });"
},
+ "getanalyticsreportingsettingsdashboardsquery": {
+ "operationId": "getanalyticsreportingsettingsdashboardsquery",
+ "functionName": "getAnalyticsReportingSettingsDashboardsQuery",
+ "signature": "getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, sortBy, pageNumber, pageSize)",
+ "parameters": [
+ {
+ "name": "dashboardType",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "dashboardAccessFilter",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "sortBy",
+ "type": "String",
+ "required": "false"
+ },
+ {
+ "name": "pageNumber",
+ "type": "Number",
+ "required": "false"
+ },
+ {
+ "name": "pageSize",
+ "type": "Number",
+ "required": "false"
+ }
+ ],
+ "return": "DashboardConfigurationListing",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet dashboardType = \"dashboardType_example\"; // String | List dashboard of given type\nlet dashboardAccessFilter = \"dashboardAccessFilter_example\"; // String | Filter dashboard based on the owner of dashboard\nlet opts = { \n \"sortBy\": \"desc\", // String | \n \"pageNumber\": 1, // Number | \n \"pageSize\": 9 // Number | \n};\n\n// Get list of dashboard configurations\napiInstance.getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts)\n .then((data) => {\n console.log(`getAnalyticsReportingSettingsDashboardsQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getAnalyticsReportingSettingsDashboardsQuery\");\n console.error(err);\n });"
+ },
"getanalyticsreportingsettingsuserdashboards": {
"operationId": "getanalyticsreportingsettingsuserdashboards",
"functionName": "getAnalyticsReportingSettingsUserDashboards",
@@ -1251,6 +1318,34 @@
"return": "ActionAggregateQueryResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet body = {}; // Object | query\n\n// Query for action aggregates\napiInstance.postAnalyticsActionsAggregatesQuery(body)\n .then((data) => {\n console.log(`postAnalyticsActionsAggregatesQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postAnalyticsActionsAggregatesQuery\");\n console.error(err);\n });"
},
+ "postanalyticsagentcopilotsaggregatesjobs": {
+ "operationId": "postanalyticsagentcopilotsaggregatesjobs",
+ "functionName": "postAnalyticsAgentcopilotsAggregatesJobs",
+ "signature": "postAnalyticsAgentcopilotsAggregatesJobs(body)",
+ "parameters": [
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "true"
+ }
+ ],
+ "return": "AsyncQueryResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet body = {}; // Object | query\n\n// Query for agent copilot aggregates asynchronously\napiInstance.postAnalyticsAgentcopilotsAggregatesJobs(body)\n .then((data) => {\n console.log(`postAnalyticsAgentcopilotsAggregatesJobs success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postAnalyticsAgentcopilotsAggregatesJobs\");\n console.error(err);\n });"
+ },
+ "postanalyticsagentcopilotsaggregatesquery": {
+ "operationId": "postanalyticsagentcopilotsaggregatesquery",
+ "functionName": "postAnalyticsAgentcopilotsAggregatesQuery",
+ "signature": "postAnalyticsAgentcopilotsAggregatesQuery(body)",
+ "parameters": [
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "true"
+ }
+ ],
+ "return": "AgentCopilotAggregateQueryResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet body = {}; // Object | query\n\n// Query for agent copilot aggregates\napiInstance.postAnalyticsAgentcopilotsAggregatesQuery(body)\n .then((data) => {\n console.log(`postAnalyticsAgentcopilotsAggregatesQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postAnalyticsAgentcopilotsAggregatesQuery\");\n console.error(err);\n });"
+ },
"postanalyticsbotsaggregatesjobs": {
"operationId": "postanalyticsbotsaggregatesjobs",
"functionName": "postAnalyticsBotsAggregatesJobs",
@@ -1596,7 +1691,7 @@
}
],
"return": "RateLimitAggregateQueryResponse",
- "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet body = {}; // Object | query\n\n// Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded\napiInstance.postAnalyticsRatelimitsAggregatesQuery(body)\n .then((data) => {\n console.log(`postAnalyticsRatelimitsAggregatesQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postAnalyticsRatelimitsAggregatesQuery\");\n console.error(err);\n });"
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.AnalyticsApi();\n\nlet body = {}; // Object | query\n\n// Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.\napiInstance.postAnalyticsRatelimitsAggregatesQuery(body)\n .then((data) => {\n console.log(`postAnalyticsRatelimitsAggregatesQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postAnalyticsRatelimitsAggregatesQuery\");\n console.error(err);\n });"
},
"postanalyticsreportingdashboardsusersbulkremove": {
"operationId": "postanalyticsreportingdashboardsusersbulkremove",
@@ -9597,30 +9692,6 @@
"return": "MessagingSetting",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\n// Get the organization's default settings that will be used as the default when creating an integration.\napiInstance.getConversationsMessagingSettingsDefault()\n .then((data) => {\n console.log(`getConversationsMessagingSettingsDefault success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getConversationsMessagingSettingsDefault\");\n console.error(err);\n });"
},
- "getconversationsmessagingsticker": {
- "operationId": "getconversationsmessagingsticker",
- "functionName": "getConversationsMessagingSticker",
- "signature": "getConversationsMessagingSticker(messengerType, pageSize, pageNumber)",
- "parameters": [
- {
- "name": "messengerType",
- "type": "String",
- "required": "true"
- },
- {
- "name": "pageSize",
- "type": "Number",
- "required": "false"
- },
- {
- "name": "pageNumber",
- "type": "Number",
- "required": "false"
- }
- ],
- "return": "MessagingStickerEntityListing",
- "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\nlet messengerType = \"messengerType_example\"; // String | Messenger Type\nlet opts = { \n \"pageSize\": 25, // Number | Page size\n \"pageNumber\": 1 // Number | Page number\n};\n\n// Get a list of Messaging Stickers (Deprecated)\napiInstance.getConversationsMessagingSticker(messengerType, opts)\n .then((data) => {\n console.log(`getConversationsMessagingSticker success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getConversationsMessagingSticker\");\n console.error(err);\n });"
- },
"getconversationsmessagingsupportedcontent": {
"operationId": "getconversationsmessagingsupportedcontent",
"functionName": "getConversationsMessagingSupportedcontent",
@@ -11543,6 +11614,19 @@
],
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\nlet conversationId = \"conversationId_example\"; // String | conversationId\nlet participantId = \"participantId_example\"; // String | participantId\nlet body = {}; // Object | Transfer request\n\n// Replace this participant with the specified user and/or address\napiInstance.postConversationsEmailParticipantReplace(conversationId, participantId, body)\n .then(() => {\n console.log(\"postConversationsEmailParticipantReplace returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling postConversationsEmailParticipantReplace\");\n console.error(err);\n });"
},
+ "postconversationsemailreconnect": {
+ "operationId": "postconversationsemailreconnect",
+ "functionName": "postConversationsEmailReconnect",
+ "signature": "postConversationsEmailReconnect(conversationId)",
+ "parameters": [
+ {
+ "name": "conversationId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.ConversationsApi();\n\nlet conversationId = \"conversationId_example\"; // String | conversationId\n\n// Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation\napiInstance.postConversationsEmailReconnect(conversationId)\n .then(() => {\n console.log(\"postConversationsEmailReconnect returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling postConversationsEmailReconnect\");\n console.error(err);\n });"
+ },
"postconversationsemails": {
"operationId": "postconversationsemails",
"functionName": "postConversationsEmails",
@@ -19131,7 +19215,7 @@
"operationId": "getjourneyviews",
"functionName": "getJourneyViews",
"signature": "getJourneyViews()",
- "return": "AddressableEntityListing",
+ "return": "JourneyViewListing",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.JourneyApi();\n\n// Get a list of Journey Views\napiInstance.getJourneyViews()\n .then((data) => {\n console.log(`getJourneyViews success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getJourneyViews\");\n console.error(err);\n });"
},
"getjourneyviewseventdefinition": {
@@ -20640,7 +20724,7 @@
"getknowledgeknowledgebaseoperations": {
"operationId": "getknowledgeknowledgebaseoperations",
"functionName": "getKnowledgeKnowledgebaseOperations",
- "signature": "getKnowledgeKnowledgebaseOperations(knowledgeBaseId, before, after, pageSize, userId, type, status, interval)",
+ "signature": "getKnowledgeKnowledgebaseOperations(knowledgeBaseId, before, after, pageSize, userId, type, status, interval, sourceId)",
"parameters": [
{
"name": "knowledgeBaseId",
@@ -20681,10 +20765,15 @@
"name": "interval",
"type": "String",
"required": "false"
+ },
+ {
+ "name": "sourceId",
+ "type": "[String]",
+ "required": "false"
}
],
"return": "OperationListing",
- "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.KnowledgeApi();\n\nlet knowledgeBaseId = \"knowledgeBaseId_example\"; // String | Knowledge base ID\nlet opts = { \n \"before\": \"before_example\", // String | The cursor that points to the start of the set of entities that has been returned.\n \"after\": \"after_example\", // String | The cursor that points to the end of the set of entities that has been returned.\n \"pageSize\": \"pageSize_example\", // String | Number of entities to return. Maximum of 200.\n \"userId\": [\"userId_example\"], // [String] | If specified, retrieves operations associated with user ids, comma separated values expected.\n \"type\": [\"type_example\"], // [String] | If specified, retrieves operations with specified operation type, comma separated values expected.\n \"status\": [\"status_example\"], // [String] | If specified, retrieves operations with specified operation status, comma separated values expected.\n \"interval\": \"interval_example\" // String | Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ\n};\n\n// Get operations\napiInstance.getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts)\n .then((data) => {\n console.log(`getKnowledgeKnowledgebaseOperations success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getKnowledgeKnowledgebaseOperations\");\n console.error(err);\n });"
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.KnowledgeApi();\n\nlet knowledgeBaseId = \"knowledgeBaseId_example\"; // String | Knowledge base ID\nlet opts = { \n \"before\": \"before_example\", // String | The cursor that points to the start of the set of entities that has been returned.\n \"after\": \"after_example\", // String | The cursor that points to the end of the set of entities that has been returned.\n \"pageSize\": \"pageSize_example\", // String | Number of entities to return. Maximum of 200.\n \"userId\": [\"userId_example\"], // [String] | If specified, retrieves operations associated with user ids, comma separated values expected.\n \"type\": [\"type_example\"], // [String] | If specified, retrieves operations with specified operation type, comma separated values expected.\n \"status\": [\"status_example\"], // [String] | If specified, retrieves operations with specified operation status, comma separated values expected.\n \"interval\": \"interval_example\", // String | Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ\n \"sourceId\": [\"sourceId_example\"] // [String] | If specified, retrieves operations associated with source ids, comma separated values expected.\n};\n\n// Get operations\napiInstance.getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts)\n .then((data) => {\n console.log(`getKnowledgeKnowledgebaseOperations success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getKnowledgeKnowledgebaseOperations\");\n console.error(err);\n });"
},
"getknowledgeknowledgebaseoperationsusersquery": {
"operationId": "getknowledgeknowledgebaseoperationsusersquery",
@@ -22848,6 +22937,35 @@
"return": "LearningAssignment",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet assignmentId = \"assignmentId_example\"; // String | The ID of Learning Assignment\nlet opts = { \n \"expand\": [\"expand_example\"] // [String] | Fields to expand in response\n};\n\n// Get Learning Assignment\napiInstance.getLearningAssignment(assignmentId, opts)\n .then((data) => {\n console.log(`getLearningAssignment success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningAssignment\");\n console.error(err);\n });"
},
+ "getlearningassignmentstep": {
+ "operationId": "getlearningassignmentstep",
+ "functionName": "getLearningAssignmentStep",
+ "signature": "getLearningAssignmentStep(assignmentId, stepId, shareableContentObjectId, expand)",
+ "parameters": [
+ {
+ "name": "assignmentId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "stepId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "shareableContentObjectId",
+ "type": "String",
+ "required": "false"
+ },
+ {
+ "name": "expand",
+ "type": "[String]",
+ "required": "false"
+ }
+ ],
+ "return": "LearningAssignmentStep",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet assignmentId = \"assignmentId_example\"; // String | The ID of Learning Assignment\nlet stepId = \"stepId_example\"; // String | The ID of Learning Assignment Step\nlet opts = { \n \"shareableContentObjectId\": \"shareableContentObjectId_example\", // String | The ID of SCO to load\n \"expand\": [\"expand_example\"] // [String] | Fields to expand in response\n};\n\n// Get Learning Assignment Step\napiInstance.getLearningAssignmentStep(assignmentId, stepId, opts)\n .then((data) => {\n console.log(`getLearningAssignmentStep success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningAssignmentStep\");\n console.error(err);\n });"
+ },
"getlearningassignments": {
"operationId": "getlearningassignments",
"functionName": "getLearningAssignments",
@@ -23049,6 +23167,20 @@
"return": "LearningModuleJobResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet moduleId = \"moduleId_example\"; // String | The ID of the learning module\nlet jobId = \"jobId_example\"; // String | The ID of the learning module job\n\n// Get a specific Learning Module job status\napiInstance.getLearningModuleJob(moduleId, jobId)\n .then((data) => {\n console.log(`getLearningModuleJob success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningModuleJob\");\n console.error(err);\n });"
},
+ "getlearningmodulepreview": {
+ "operationId": "getlearningmodulepreview",
+ "functionName": "getLearningModulePreview",
+ "signature": "getLearningModulePreview(moduleId)",
+ "parameters": [
+ {
+ "name": "moduleId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "return": "LearningModulePreviewGetResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet moduleId = \"moduleId_example\"; // String | The ID of the learning module\n\n// Get a learning module preview\napiInstance.getLearningModulePreview(moduleId)\n .then((data) => {\n console.log(`getLearningModulePreview success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningModulePreview\");\n console.error(err);\n });"
+ },
"getlearningmodulerule": {
"operationId": "getlearningmodulerule",
"functionName": "getLearningModuleRule",
@@ -23209,6 +23341,20 @@
"return": "LearningModuleCoverArtResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet coverArtId = \"coverArtId_example\"; // String | Key identifier for the cover art\n\n// Get a specific Learning Module cover art using ID\napiInstance.getLearningModulesCoverartCoverArtId(coverArtId)\n .then((data) => {\n console.log(`getLearningModulesCoverartCoverArtId success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningModulesCoverartCoverArtId\");\n console.error(err);\n });"
},
+ "getlearningscormscormid": {
+ "operationId": "getlearningscormscormid",
+ "functionName": "getLearningScormScormId",
+ "signature": "getLearningScormScormId(scormId)",
+ "parameters": [
+ {
+ "name": "scormId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "return": "LearningScormResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet scormId = \"scormId_example\"; // String | The ID of the SCORM package\n\n// Get Learning SCORM Result\napiInstance.getLearningScormScormId(scormId)\n .then((data) => {\n console.log(`getLearningScormScormId success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getLearningScormScormId\");\n console.error(err);\n });"
+ },
"patchlearningassignment": {
"operationId": "patchlearningassignment",
"functionName": "patchLearningAssignment",
@@ -23247,6 +23393,30 @@
"return": "LearningAssignment",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet assignmentId = \"assignmentId_example\"; // String | The ID of Learning Assignment\nlet opts = { \n \"body\": {} // Object | The Learning assignment reschedule model\n};\n\n// Reschedule Learning Assignment\napiInstance.patchLearningAssignmentReschedule(assignmentId, opts)\n .then((data) => {\n console.log(`patchLearningAssignmentReschedule success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchLearningAssignmentReschedule\");\n console.error(err);\n });"
},
+ "patchlearningassignmentstep": {
+ "operationId": "patchlearningassignmentstep",
+ "functionName": "patchLearningAssignmentStep",
+ "signature": "patchLearningAssignmentStep(assignmentId, stepId, body)",
+ "parameters": [
+ {
+ "name": "assignmentId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "stepId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "false"
+ }
+ ],
+ "return": "LearningAssignmentStep",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet assignmentId = \"assignmentId_example\"; // String | The ID of Learning Assignment\nlet stepId = \"stepId_example\"; // String | The ID of Learning Assignment Step\nlet opts = { \n \"body\": {} // Object | The Learning Assignment Step to be updated\n};\n\n// Update Learning Assignment Step\napiInstance.patchLearningAssignmentStep(assignmentId, stepId, opts)\n .then((data) => {\n console.log(`patchLearningAssignmentStep success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchLearningAssignmentStep\");\n console.error(err);\n });"
+ },
"patchlearningmoduleuserassignments": {
"operationId": "patchlearningmoduleuserassignments",
"functionName": "patchLearningModuleUserAssignments",
@@ -23459,6 +23629,20 @@
"return": "LearningScheduleSlotsQueryResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet body = {}; // Object | The slot search request\n\n// Get list of possible slots where a learning activity can be scheduled.\napiInstance.postLearningScheduleslotsQuery(body)\n .then((data) => {\n console.log(`postLearningScheduleslotsQuery success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postLearningScheduleslotsQuery\");\n console.error(err);\n });"
},
+ "postlearningscorm": {
+ "operationId": "postlearningscorm",
+ "functionName": "postLearningScorm",
+ "signature": "postLearningScorm(body)",
+ "parameters": [
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "false"
+ }
+ ],
+ "return": "LearningScormUploadResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet opts = { \n \"body\": {} // Object | The SCORM package to be uploaded\n};\n\n// Create a SCORM package upload request\napiInstance.postLearningScorm(opts)\n .then((data) => {\n console.log(`postLearningScorm success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postLearningScorm\");\n console.error(err);\n });"
+ },
"putlearningmodule": {
"operationId": "putlearningmodule",
"functionName": "putLearningModule",
@@ -23478,6 +23662,25 @@
"return": "LearningModule",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet moduleId = \"moduleId_example\"; // String | The ID of the learning module\nlet body = {}; // Object | The learning module to be updated\n\n// Update a learning module\napiInstance.putLearningModule(moduleId, body)\n .then((data) => {\n console.log(`putLearningModule success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling putLearningModule\");\n console.error(err);\n });"
},
+ "putlearningmodulepreview": {
+ "operationId": "putlearningmodulepreview",
+ "functionName": "putLearningModulePreview",
+ "signature": "putLearningModulePreview(moduleId, body)",
+ "parameters": [
+ {
+ "name": "moduleId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "true"
+ }
+ ],
+ "return": "LearningModulePreviewUpdateResponse",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.LearningApi();\n\nlet moduleId = \"moduleId_example\"; // String | The ID of the learning module\nlet body = {}; // Object | The learning module to be updated\n\n// Update a learning module preview\napiInstance.putLearningModulePreview(moduleId, body)\n .then((data) => {\n console.log(`putLearningModulePreview success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling putLearningModulePreview\");\n console.error(err);\n });"
+ },
"putlearningmodulerule": {
"operationId": "putlearningmodulerule",
"functionName": "putLearningModuleRule",
@@ -36474,6 +36677,19 @@
"return": "ExecutionDataGlobalSettingsResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SettingsApi();\n\nlet body = {}; // Object | New Execution Data Setting\n\n// Edit the execution history on off setting.\napiInstance.patchSettingsExecutiondata(body)\n .then((data) => {\n console.log(`patchSettingsExecutiondata success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchSettingsExecutiondata\");\n console.error(err);\n });"
},
+ "deletespeechandtextanalyticscategory": {
+ "operationId": "deletespeechandtextanalyticscategory",
+ "functionName": "deleteSpeechandtextanalyticsCategory",
+ "signature": "deleteSpeechandtextanalyticsCategory(categoryId)",
+ "parameters": [
+ {
+ "name": "categoryId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet categoryId = \"categoryId_example\"; // String | The id of the category\n\n// Delete a Speech and Text Analytics category by ID\napiInstance.deleteSpeechandtextanalyticsCategory(categoryId)\n .then(() => {\n console.log(\"deleteSpeechandtextanalyticsCategory returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling deleteSpeechandtextanalyticsCategory\");\n console.error(err);\n });"
+ },
"deletespeechandtextanalyticsdictionaryfeedbackdictionaryfeedbackid": {
"operationId": "deletespeechandtextanalyticsdictionaryfeedbackdictionaryfeedbackid",
"functionName": "deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",
@@ -36537,6 +36753,59 @@
],
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet topicId = \"topicId_example\"; // String | The id of the topic\n\n// Delete a Speech and Text Analytics topic by id\napiInstance.deleteSpeechandtextanalyticsTopic(topicId)\n .then(() => {\n console.log(\"deleteSpeechandtextanalyticsTopic returned successfully.\");\n })\n .catch((err) => {\n console.log(\"There was a failure calling deleteSpeechandtextanalyticsTopic\");\n console.error(err);\n });"
},
+ "getspeechandtextanalyticscategories": {
+ "operationId": "getspeechandtextanalyticscategories",
+ "functionName": "getSpeechandtextanalyticsCategories",
+ "signature": "getSpeechandtextanalyticsCategories(pageSize, pageNumber, name, sortOrder, sortBy, ids)",
+ "parameters": [
+ {
+ "name": "pageSize",
+ "type": "Number",
+ "required": "false"
+ },
+ {
+ "name": "pageNumber",
+ "type": "Number",
+ "required": "false"
+ },
+ {
+ "name": "name",
+ "type": "String",
+ "required": "false"
+ },
+ {
+ "name": "sortOrder",
+ "type": "String",
+ "required": "false"
+ },
+ {
+ "name": "sortBy",
+ "type": "String",
+ "required": "false"
+ },
+ {
+ "name": "ids",
+ "type": "[String]",
+ "required": "false"
+ }
+ ],
+ "return": "CategoriesEntityListing",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet opts = { \n \"pageSize\": 25, // Number | The page size for the listing. The max that will be returned is 50.\n \"pageNumber\": 1, // Number | The page number for the listing\n \"name\": \"name_example\", // String | The category name filter applied to the listing\n \"sortOrder\": \"asc\", // String | The sort order for the listing\n \"sortBy\": \"name\", // String | The field to sort by for the listing\n \"ids\": [\"ids_example\"] // [String] | Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.\n};\n\n// Get the list of Speech and Text Analytics categories\napiInstance.getSpeechandtextanalyticsCategories(opts)\n .then((data) => {\n console.log(`getSpeechandtextanalyticsCategories success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getSpeechandtextanalyticsCategories\");\n console.error(err);\n });"
+ },
+ "getspeechandtextanalyticscategory": {
+ "operationId": "getspeechandtextanalyticscategory",
+ "functionName": "getSpeechandtextanalyticsCategory",
+ "signature": "getSpeechandtextanalyticsCategory(categoryId)",
+ "parameters": [
+ {
+ "name": "categoryId",
+ "type": "String",
+ "required": "true"
+ }
+ ],
+ "return": "StaCategory",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet categoryId = \"categoryId_example\"; // String | The id of the category\n\n// Get a Speech and Text Analytics Category by ID\napiInstance.getSpeechandtextanalyticsCategory(categoryId)\n .then((data) => {\n console.log(`getSpeechandtextanalyticsCategory success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getSpeechandtextanalyticsCategory\");\n console.error(err);\n });"
+ },
"getspeechandtextanalyticsconversation": {
"operationId": "getspeechandtextanalyticsconversation",
"functionName": "getSpeechandtextanalyticsConversation",
@@ -36551,6 +36820,30 @@
"return": "ConversationMetrics",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet conversationId = \"conversationId_example\"; // String | Conversation Id\n\n// Get Speech and Text Analytics for a specific conversation\napiInstance.getSpeechandtextanalyticsConversation(conversationId)\n .then((data) => {\n console.log(`getSpeechandtextanalyticsConversation success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getSpeechandtextanalyticsConversation\");\n console.error(err);\n });"
},
+ "getspeechandtextanalyticsconversationcategories": {
+ "operationId": "getspeechandtextanalyticsconversationcategories",
+ "functionName": "getSpeechandtextanalyticsConversationCategories",
+ "signature": "getSpeechandtextanalyticsConversationCategories(conversationId, pageSize, pageNumber)",
+ "parameters": [
+ {
+ "name": "conversationId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "pageSize",
+ "type": "Number",
+ "required": "false"
+ },
+ {
+ "name": "pageNumber",
+ "type": "Number",
+ "required": "false"
+ }
+ ],
+ "return": "ConversationCategoriesEntityListing",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet conversationId = \"conversationId_example\"; // String | The id of the conversation\nlet opts = { \n \"pageSize\": 25, // Number | The page size for the listing. The max that will be returned is 50.\n \"pageNumber\": 1 // Number | The page number for the listing\n};\n\n// Get the list of detected Speech and Text Analytics categories of conversation\napiInstance.getSpeechandtextanalyticsConversationCategories(conversationId, opts)\n .then((data) => {\n console.log(`getSpeechandtextanalyticsConversationCategories success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling getSpeechandtextanalyticsConversationCategories\");\n console.error(err);\n });"
+ },
"getspeechandtextanalyticsconversationcommunicationtranscripturl": {
"operationId": "getspeechandtextanalyticsconversationcommunicationtranscripturl",
"functionName": "getSpeechandtextanalyticsConversationCommunicationTranscripturl",
@@ -36920,6 +37213,20 @@
"return": "SpeechTextAnalyticsSettingsResponse",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet body = {}; // Object | Speech And Text Analytics Settings\n\n// Patch Speech And Text Analytics Settings\napiInstance.patchSpeechandtextanalyticsSettings(body)\n .then((data) => {\n console.log(`patchSpeechandtextanalyticsSettings success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling patchSpeechandtextanalyticsSettings\");\n console.error(err);\n });"
},
+ "postspeechandtextanalyticscategories": {
+ "operationId": "postspeechandtextanalyticscategories",
+ "functionName": "postSpeechandtextanalyticsCategories",
+ "signature": "postSpeechandtextanalyticsCategories(body)",
+ "parameters": [
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "true"
+ }
+ ],
+ "return": "StaCategory",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet body = {}; // Object | The category to create\n\n// Create new Speech and Text Analytics category\napiInstance.postSpeechandtextanalyticsCategories(body)\n .then((data) => {\n console.log(`postSpeechandtextanalyticsCategories success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postSpeechandtextanalyticsCategories\");\n console.error(err);\n });"
+ },
"postspeechandtextanalyticsdictionaryfeedback": {
"operationId": "postspeechandtextanalyticsdictionaryfeedback",
"functionName": "postSpeechandtextanalyticsDictionaryfeedback",
@@ -37018,6 +37325,25 @@
"return": "TopicJob",
"example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet body = {}; // Object | The publish topics job to create\n\n// Create new Speech and Text Analytics publish topics job\napiInstance.postSpeechandtextanalyticsTopicsPublishjobs(body)\n .then((data) => {\n console.log(`postSpeechandtextanalyticsTopicsPublishjobs success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling postSpeechandtextanalyticsTopicsPublishjobs\");\n console.error(err);\n });"
},
+ "putspeechandtextanalyticscategory": {
+ "operationId": "putspeechandtextanalyticscategory",
+ "functionName": "putSpeechandtextanalyticsCategory",
+ "signature": "putSpeechandtextanalyticsCategory(categoryId, body)",
+ "parameters": [
+ {
+ "name": "categoryId",
+ "type": "String",
+ "required": "true"
+ },
+ {
+ "name": "body",
+ "type": "Object",
+ "required": "true"
+ }
+ ],
+ "return": "StaCategory",
+ "example": "const platformClient = require(\"purecloud-platform-client-v2\");\n\nconst client = platformClient.ApiClient.instance;\nclient.setEnvironment(platformClient.PureCloudRegionHosts.us_east_1); // Genesys Cloud region\n\n// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)\nclient.setAccessToken(\"your_access_token\");\n\nlet apiInstance = new platformClient.SpeechTextAnalyticsApi();\n\nlet categoryId = \"categoryId_example\"; // String | The id of the category\nlet body = {}; // Object | The updated category\n\n// Update a Speech and Text Analytics category by ID\napiInstance.putSpeechandtextanalyticsCategory(categoryId, body)\n .then((data) => {\n console.log(`putSpeechandtextanalyticsCategory success! data: ${JSON.stringify(data, null, 2)}`);\n })\n .catch((err) => {\n console.log(\"There was a failure calling putSpeechandtextanalyticsCategory\");\n console.error(err);\n });"
+ },
"putspeechandtextanalyticsdictionaryfeedbackdictionaryfeedbackid": {
"operationId": "putspeechandtextanalyticsdictionaryfeedbackdictionaryfeedbackid",
"functionName": "putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",
diff --git a/build/README.md b/build/README.md
index 393b58f4..69171925 100644
--- a/build/README.md
+++ b/build/README.md
@@ -31,7 +31,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 df52eb74..8ff9d171 100644
--- a/build/dist/node/purecloud-platform-client-v2.js
+++ b/build/dist/node/purecloud-platform-client-v2.js
@@ -405,7 +405,7 @@ class Configuration {
/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 194.0.0
+ * @version 195.0.0
*/
class ApiClient {
/**
@@ -1480,6 +1480,9 @@ class ApiClient {
if (param instanceof Date) {
return param.toJSON();
}
+ if (param instanceof Boolean) {
+ return param.toString().toLowerCase();
+ }
return param.toString();
}
@@ -1824,7 +1827,7 @@ class AlertingApi {
/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -2485,7 +2488,7 @@ class AnalyticsApi {
/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -2606,6 +2609,62 @@ class AnalyticsApi {
);
}
+ /**
+ * Get status for async query for agent copilot aggregates
+ *
+ * @param {String} jobId jobId
+ * getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ getAnalyticsAgentcopilotsAggregatesJob(jobId) {
+ // verify the required parameter 'jobId' is set
+ if (jobId === undefined || jobId === null) {
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}',
+ 'GET',
+ { 'jobId': jobId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Fetch a page of results for an async aggregates query
+ *
+ * @param {String} jobId jobId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.cursor Cursor token to retrieve next page
+ * getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'jobId' is set
+ if (jobId === undefined || jobId === null) {
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results',
+ 'GET',
+ { 'jobId': jobId },
+ { 'cursor': opts['cursor'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get Reporting Turns (division aware).
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
@@ -3364,6 +3423,42 @@ class AnalyticsApi {
);
}
+ /**
+ * Get list of dashboard configurations
+ *
+ * @param {Object} dashboardType List dashboard of given type
+ * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.sortBy (default to desc)
+ * @param {Number} opts.pageNumber (default to 1)
+ * @param {Number} opts.pageSize (default to 9)
+ */
+ getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'dashboardType' is set
+ if (dashboardType === undefined || dashboardType === null) {
+ throw 'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';
+ }
+ // verify the required parameter 'dashboardAccessFilter' is set
+ if (dashboardAccessFilter === undefined || dashboardAccessFilter === null) {
+ throw 'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/reporting/settings/dashboards/query',
+ 'GET',
+ { },
+ { 'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get list of dashboards for an user
*
@@ -3829,6 +3924,58 @@ class AnalyticsApi {
);
}
+ /**
+ * Query for agent copilot aggregates asynchronously
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ postAnalyticsAgentcopilotsAggregatesJobs(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Query for agent copilot aggregates
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ postAnalyticsAgentcopilotsAggregatesQuery(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/query',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Query for bot aggregates asynchronously
*
@@ -4402,8 +4549,8 @@ class AnalyticsApi {
}
/**
- * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
- *
+ * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
+ * The max property can be used to determine estimated rate limit value hit.
* @param {Object} body query
*/
postAnalyticsRatelimitsAggregatesQuery(body) {
@@ -4953,7 +5100,7 @@ class ArchitectApi {
/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -9099,7 +9246,7 @@ class AuditApi {
/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -9299,7 +9446,7 @@ class AuthorizationApi {
/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10537,7 +10684,7 @@ class BillingApi {
/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10617,7 +10764,7 @@ class CarrierServicesApi {
/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10687,7 +10834,7 @@ class ChatApi {
/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -11623,7 +11770,7 @@ class CoachingApi {
/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -12200,7 +12347,7 @@ class ContentManagementApi {
/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -13282,7 +13429,7 @@ class ConversationsApi {
/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -15690,37 +15837,6 @@ class ConversationsApi {
);
}
- /**
- * Get a list of Messaging Stickers (Deprecated)
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
- * @param {Object} messengerType Messenger Type
- * @param {Object} opts Optional parameters
- * @param {Number} opts.pageSize Page size (default to 25)
- * @param {Number} opts.pageNumber Page number (default to 1)
- * @deprecated
- */
- getConversationsMessagingSticker(messengerType, opts) {
- opts = opts || {};
-
- // verify the required parameter 'messengerType' is set
- if (messengerType === undefined || messengerType === null) {
- throw 'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';
- }
-
- return this.apiClient.callApi(
- '/api/v2/conversations/messaging/stickers/{messengerType}',
- 'GET',
- { 'messengerType': messengerType },
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
- { },
- { },
- null,
- ['PureCloud OAuth'],
- ['application/json'],
- ['application/json']
- );
- }
-
/**
* Get a list of Supported Content profiles
*
@@ -18823,6 +18939,31 @@ class ConversationsApi {
);
}
+ /**
+ * Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
+ *
+ * @param {String} conversationId conversationId
+ */
+ postConversationsEmailReconnect(conversationId) {
+ // verify the required parameter 'conversationId' is set
+ if (conversationId === undefined || conversationId === null) {
+ throw 'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/conversations/emails/{conversationId}/reconnect',
+ 'POST',
+ { 'conversationId': conversationId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Create an email conversation
* If the direction of the request is INBOUND, this will create an external conversation with a third party provider. If the direction of the the request is OUTBOUND, this will create a conversation to send outbound emails on behalf of a queue.
@@ -20239,7 +20380,7 @@ class DataExtensionsApi {
/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20325,7 +20466,7 @@ class DownloadsApi {
/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20377,7 +20518,7 @@ class EmailsApi {
/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20442,7 +20583,7 @@ class EventsApi {
/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20538,7 +20679,7 @@ class ExternalContactsApi {
/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22496,7 +22637,7 @@ class FaxApi {
/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22711,7 +22852,7 @@ class FlowsApi {
/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22894,7 +23035,7 @@ class GamificationApi {
/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -24980,7 +25121,7 @@ class GeneralDataProtectionRegulationApi {
/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25110,7 +25251,7 @@ class GeolocationApi {
/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25241,7 +25382,7 @@ class GreetingsApi {
/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25696,7 +25837,7 @@ class GroupsApi {
/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -26215,7 +26356,7 @@ class IdentityProviderApi {
/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -27076,7 +27217,7 @@ class InfrastructureAsCodeApi {
/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -27243,7 +27384,7 @@ class IntegrationsApi {
/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -29595,7 +29736,7 @@ class JourneyApi {
/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -31184,7 +31325,7 @@ class KnowledgeApi {
/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -32538,6 +32679,7 @@ class KnowledgeApi {
* @param {Array.} opts.type If specified, retrieves operations with specified operation type, comma separated values expected.
* @param {Array.} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
* @param {String} opts.interval Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ * @param {Array.} opts.sourceId If specified, retrieves operations associated with source ids, comma separated values expected.
* getKnowledgeKnowledgebaseOperations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts) {
@@ -32552,7 +32694,7 @@ class KnowledgeApi {
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations',
'GET',
{ 'knowledgeBaseId': knowledgeBaseId },
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'type': this.apiClient.buildCollectionParam(opts['type'], 'multi'),'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'interval': opts['interval'] },
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'type': this.apiClient.buildCollectionParam(opts['type'], 'multi'),'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'interval': opts['interval'],'sourceId': this.apiClient.buildCollectionParam(opts['sourceId'], 'multi') },
{ },
{ },
null,
@@ -34427,7 +34569,7 @@ class LanguageUnderstandingApi {
/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35461,7 +35603,7 @@ class LanguagesApi {
/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35683,7 +35825,7 @@ class LearningApi {
/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35777,6 +35919,41 @@ class LearningApi {
);
}
+ /**
+ * Get Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.shareableContentObjectId The ID of SCO to load
+ * @param {Array.} opts.expand Fields to expand in response
+ */
+ getLearningAssignmentStep(assignmentId, stepId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'assignmentId' is set
+ if (assignmentId === undefined || assignmentId === null) {
+ throw 'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';
+ }
+ // verify the required parameter 'stepId' is set
+ if (stepId === undefined || stepId === null) {
+ throw 'Missing the required parameter "stepId" when calling getLearningAssignmentStep';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
+ 'GET',
+ { 'assignmentId': assignmentId,'stepId': stepId },
+ { 'shareableContentObjectId': opts['shareableContentObjectId'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* List of Learning module Assignments
* Either moduleId or user value is required
@@ -35911,6 +36088,31 @@ class LearningApi {
);
}
+ /**
+ * Get a learning module preview
+ *
+ * @param {String} moduleId The ID of the learning module
+ */
+ getLearningModulePreview(moduleId) {
+ // verify the required parameter 'moduleId' is set
+ if (moduleId === undefined || moduleId === null) {
+ throw 'Missing the required parameter "moduleId" when calling getLearningModulePreview';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/modules/{moduleId}/preview',
+ 'GET',
+ { 'moduleId': moduleId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get a learning module rule
*
@@ -36063,6 +36265,31 @@ class LearningApi {
);
}
+ /**
+ * Get Learning SCORM Result
+ *
+ * @param {String} scormId The ID of the SCORM package
+ */
+ getLearningScormScormId(scormId) {
+ // verify the required parameter 'scormId' is set
+ if (scormId === undefined || scormId === null) {
+ throw 'Missing the required parameter "scormId" when calling getLearningScormScormId';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/scorm/{scormId}',
+ 'GET',
+ { 'scormId': scormId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update Learning Assignment
*
@@ -36121,6 +36348,40 @@ class LearningApi {
);
}
+ /**
+ * Update Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The Learning Assignment Step to be updated
+ */
+ patchLearningAssignmentStep(assignmentId, stepId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'assignmentId' is set
+ if (assignmentId === undefined || assignmentId === null) {
+ throw 'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';
+ }
+ // verify the required parameter 'stepId' is set
+ if (stepId === undefined || stepId === null) {
+ throw 'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
+ 'PATCH',
+ { 'assignmentId': assignmentId,'stepId': stepId },
+ { },
+ { },
+ { },
+ opts['body'],
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update an external assignment for a specific user
*
@@ -36472,6 +36733,30 @@ class LearningApi {
);
}
+ /**
+ * Create a SCORM package upload request
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The SCORM package to be uploaded
+ */
+ postLearningScorm(opts) {
+ opts = opts || {};
+
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/scorm',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ opts['body'],
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update a learning module
* This will update the name, description, completion time in days and inform steps for a learning module
@@ -36502,6 +36787,36 @@ class LearningApi {
);
}
+ /**
+ * Update a learning module preview
+ * This will update a learning module preview
+ * @param {String} moduleId The ID of the learning module
+ * @param {Object} body The learning module to be updated
+ */
+ putLearningModulePreview(moduleId, body) {
+ // verify the required parameter 'moduleId' is set
+ if (moduleId === undefined || moduleId === null) {
+ throw 'Missing the required parameter "moduleId" when calling putLearningModulePreview';
+ }
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling putLearningModulePreview';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/modules/{moduleId}/preview',
+ 'PUT',
+ { 'moduleId': moduleId },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update a learning module rule
* This will update a learning module rule with the specified fields.
@@ -36538,7 +36853,7 @@ class LicenseApi {
/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -36776,7 +37091,7 @@ class LocationsApi {
/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37012,7 +37327,7 @@ class LogCaptureApi {
/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37212,7 +37527,7 @@ class MessagingApi {
/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37571,7 +37886,7 @@ class MobileDevicesApi {
/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37722,7 +38037,7 @@ class NotificationsApi {
/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37955,7 +38270,7 @@ class OAuthApi {
/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38321,7 +38636,7 @@ class ObjectsApi {
/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38591,7 +38906,7 @@ class OperationalEventsApi {
/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38657,7 +38972,7 @@ class OrganizationApi {
/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -39132,7 +39447,7 @@ class OrganizationAuthorizationApi {
/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -40479,7 +40794,7 @@ class OutboundApi {
/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -44845,7 +45160,7 @@ class PresenceApi {
/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -45589,7 +45904,7 @@ class ProcessAutomationApi {
/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -45828,7 +46143,7 @@ class QualityApi {
/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -47585,7 +47900,7 @@ class RecordingApi {
/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -49243,7 +49558,7 @@ class ResponseManagementApi {
/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -49753,7 +50068,7 @@ class RoutingApi {
/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -50214,7 +50529,6 @@ class RoutingApi {
* @param {String} labelId Utilization Label ID
* @param {Object} opts Optional parameters
* @param {Boolean} opts.forceDelete Remove all label usages (if found) without warning (default to false)
- * deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
deleteRoutingUtilizationLabel(labelId, opts) {
opts = opts || {};
@@ -51733,7 +52047,6 @@ class RoutingApi {
* Get details about this utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabel(labelId) {
// verify the required parameter 'labelId' is set
@@ -51759,7 +52072,6 @@ class RoutingApi {
* Get list of agent ids associated with a utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabelAgents(labelId) {
// verify the required parameter 'labelId' is set
@@ -51789,7 +52101,6 @@ class RoutingApi {
* @param {Number} opts.pageNumber Page number (default to 1)
* @param {Object} opts.sortOrder Sort order by name (default to ascending)
* @param {String} opts.name Utilization label's name (Wildcard is supported, e.g., 'label1*', '*label*'
- * getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabels(opts) {
opts = opts || {};
@@ -53212,7 +53523,6 @@ class RoutingApi {
* Create a utilization label
*
* @param {Object} body UtilizationLabel
- * postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
postRoutingUtilizationLabels(body) {
// verify the required parameter 'body' is set
@@ -53605,7 +53915,6 @@ class RoutingApi {
*
* @param {String} labelId Utilization Label ID
* @param {Object} body UtilizationLabel
- * putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
putRoutingUtilizationLabel(labelId, body) {
// verify the required parameter 'labelId' is set
@@ -53732,7 +54041,7 @@ class SCIMApi {
/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -54609,7 +54918,7 @@ class ScreenRecordingApi {
/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -54654,7 +54963,7 @@ class ScriptsApi {
/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55098,7 +55407,7 @@ class SearchApi {
/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55787,7 +56096,7 @@ class SettingsApi {
/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55899,7 +56208,7 @@ class SpeechTextAnalyticsApi {
/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55914,6 +56223,31 @@ class SpeechTextAnalyticsApi {
}
+ /**
+ * Delete a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */
+ deleteSpeechandtextanalyticsCategory(categoryId) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'DELETE',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Delete a Speech and Text Analytics DictionaryFeedback by Id
*
@@ -56038,6 +56372,60 @@ class SpeechTextAnalyticsApi {
);
}
+ /**
+ * Get the list of Speech and Text Analytics categories
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ * @param {String} opts.name The category name filter applied to the listing
+ * @param {Object} opts.sortOrder The sort order for the listing (default to asc)
+ * @param {Object} opts.sortBy The field to sort by for the listing (default to name)
+ * @param {Array.} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
+ */
+ getSpeechandtextanalyticsCategories(opts) {
+ opts = opts || {};
+
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories',
+ 'GET',
+ { },
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi') },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Get a Speech and Text Analytics Category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */
+ getSpeechandtextanalyticsCategory(categoryId) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'GET',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get Speech and Text Analytics for a specific conversation
*
@@ -56063,6 +56451,36 @@ class SpeechTextAnalyticsApi {
);
}
+ /**
+ * Get the list of detected Speech and Text Analytics categories of conversation
+ *
+ * @param {String} conversationId The id of the conversation
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ */
+ getSpeechandtextanalyticsConversationCategories(conversationId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'conversationId' is set
+ if (conversationId === undefined || conversationId === null) {
+ throw 'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/conversations/{conversationId}/categories',
+ 'GET',
+ { 'conversationId': conversationId },
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get the pre-signed S3 URL for the transcript of a specific communication of a conversation
*
@@ -56633,6 +57051,31 @@ class SpeechTextAnalyticsApi {
);
}
+ /**
+ * Create new Speech and Text Analytics category
+ *
+ * @param {Object} body The category to create
+ */
+ postSpeechandtextanalyticsCategories(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Create a Speech and Text Analytics DictionaryFeedback
*
@@ -56833,6 +57276,36 @@ class SpeechTextAnalyticsApi {
);
}
+ /**
+ * Update a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ * @param {Object} body The updated category
+ */
+ putSpeechandtextanalyticsCategory(categoryId, body) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';
+ }
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'PUT',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update existing Speech and Text Analytics dictionary feedback by id
*
@@ -57013,7 +57486,7 @@ class StationsApi {
/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -57115,7 +57588,7 @@ class SuggestApi {
/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -57254,7 +57727,7 @@ class TaskManagementApi {
/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -58602,7 +59075,7 @@ class TeamsApi {
/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -58903,7 +59376,7 @@ class TelephonyApi {
/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -59085,7 +59558,7 @@ class TelephonyProvidersEdgeApi {
/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62413,7 +62886,7 @@ class TextbotsApi {
/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62541,7 +63014,7 @@ class TokensApi {
/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62695,7 +63168,7 @@ class UploadsApi {
/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62964,7 +63437,7 @@ class UsageApi {
/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -63179,7 +63652,7 @@ class UserRecordingsApi {
/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -63364,7 +63837,7 @@ class UsersApi {
/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66022,7 +66495,7 @@ class UtilitiesApi {
/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66133,7 +66606,7 @@ class VoicemailApi {
/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66800,7 +67273,7 @@ class WebChatApi {
/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67351,7 +67824,7 @@ class WebDeploymentsApi {
/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67878,7 +68351,7 @@ class WebMessagingApi {
/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67924,7 +68397,7 @@ class WidgetsApi {
/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -68070,7 +68543,7 @@ class WorkforceManagementApi {
/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -73983,7 +74456,7 @@ class WorkforceManagementApi {
*
*
* @module purecloud-platform-client-v2/index
- * @version 194.0.0
+ * @version 195.0.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 7db66055..428223e3 100644
--- a/build/dist/web-amd/purecloud-platform-client-v2.js
+++ b/build/dist/web-amd/purecloud-platform-client-v2.js
@@ -402,7 +402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 194.0.0
+ * @version 195.0.0
*/
class ApiClient {
/**
@@ -1477,6 +1477,9 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
if (param instanceof Date) {
return param.toJSON();
}
+ if (param instanceof Boolean) {
+ return param.toString().toLowerCase();
+ }
return param.toString();
}
@@ -1821,7 +1824,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -2482,7 +2485,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Analytics service.
* @module purecloud-platform-client-v2/api/AnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -2603,6 +2606,62 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get status for async query for agent copilot aggregates
+ *
+ * @param {String} jobId jobId
+ * getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ getAnalyticsAgentcopilotsAggregatesJob(jobId) {
+ // verify the required parameter 'jobId' is set
+ if (jobId === undefined || jobId === null) {
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}',
+ 'GET',
+ { 'jobId': jobId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Fetch a page of results for an async aggregates query
+ *
+ * @param {String} jobId jobId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.cursor Cursor token to retrieve next page
+ * getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'jobId' is set
+ if (jobId === undefined || jobId === null) {
+ throw 'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results',
+ 'GET',
+ { 'jobId': jobId },
+ { 'cursor': opts['cursor'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get Reporting Turns (division aware).
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
@@ -3361,6 +3420,42 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get list of dashboard configurations
+ *
+ * @param {Object} dashboardType List dashboard of given type
+ * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.sortBy (default to desc)
+ * @param {Number} opts.pageNumber (default to 1)
+ * @param {Number} opts.pageSize (default to 9)
+ */
+ getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'dashboardType' is set
+ if (dashboardType === undefined || dashboardType === null) {
+ throw 'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';
+ }
+ // verify the required parameter 'dashboardAccessFilter' is set
+ if (dashboardAccessFilter === undefined || dashboardAccessFilter === null) {
+ throw 'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/reporting/settings/dashboards/query',
+ 'GET',
+ { },
+ { 'dashboardType': dashboardType,'dashboardAccessFilter': dashboardAccessFilter,'sortBy': opts['sortBy'],'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get list of dashboards for an user
*
@@ -3826,6 +3921,58 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Query for agent copilot aggregates asynchronously
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ postAnalyticsAgentcopilotsAggregatesJobs(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/jobs',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Query for agent copilot aggregates
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */
+ postAnalyticsAgentcopilotsAggregatesQuery(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/analytics/agentcopilots/aggregates/query',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Query for bot aggregates asynchronously
*
@@ -4399,8 +4546,8 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
}
/**
- * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
- *
+ * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
+ * The max property can be used to determine estimated rate limit value hit.
* @param {Object} body query
*/
postAnalyticsRatelimitsAggregatesQuery(body) {
@@ -4950,7 +5097,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Architect service.
* @module purecloud-platform-client-v2/api/ArchitectApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -9096,7 +9243,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Audit service.
* @module purecloud-platform-client-v2/api/AuditApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -9296,7 +9443,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Authorization service.
* @module purecloud-platform-client-v2/api/AuthorizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10534,7 +10681,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Billing service.
* @module purecloud-platform-client-v2/api/BillingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10614,7 +10761,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* CarrierServices service.
* @module purecloud-platform-client-v2/api/CarrierServicesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -10684,7 +10831,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Chat service.
* @module purecloud-platform-client-v2/api/ChatApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -11620,7 +11767,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Coaching service.
* @module purecloud-platform-client-v2/api/CoachingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -12197,7 +12344,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ContentManagement service.
* @module purecloud-platform-client-v2/api/ContentManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -13279,7 +13426,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Conversations service.
* @module purecloud-platform-client-v2/api/ConversationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -15687,37 +15834,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
- /**
- * Get a list of Messaging Stickers (Deprecated)
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
- * @param {Object} messengerType Messenger Type
- * @param {Object} opts Optional parameters
- * @param {Number} opts.pageSize Page size (default to 25)
- * @param {Number} opts.pageNumber Page number (default to 1)
- * @deprecated
- */
- getConversationsMessagingSticker(messengerType, opts) {
- opts = opts || {};
-
- // verify the required parameter 'messengerType' is set
- if (messengerType === undefined || messengerType === null) {
- throw 'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';
- }
-
- return this.apiClient.callApi(
- '/api/v2/conversations/messaging/stickers/{messengerType}',
- 'GET',
- { 'messengerType': messengerType },
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
- { },
- { },
- null,
- ['PureCloud OAuth'],
- ['application/json'],
- ['application/json']
- );
- }
-
/**
* Get a list of Supported Content profiles
*
@@ -18820,6 +18936,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
+ *
+ * @param {String} conversationId conversationId
+ */
+ postConversationsEmailReconnect(conversationId) {
+ // verify the required parameter 'conversationId' is set
+ if (conversationId === undefined || conversationId === null) {
+ throw 'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/conversations/emails/{conversationId}/reconnect',
+ 'POST',
+ { 'conversationId': conversationId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Create an email conversation
* If the direction of the request is INBOUND, this will create an external conversation with a third party provider. If the direction of the the request is OUTBOUND, this will create a conversation to send outbound emails on behalf of a queue.
@@ -20236,7 +20377,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* DataExtensions service.
* @module purecloud-platform-client-v2/api/DataExtensionsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20322,7 +20463,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20374,7 +20515,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Emails service.
* @module purecloud-platform-client-v2/api/EmailsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20439,7 +20580,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -20535,7 +20676,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ExternalContacts service.
* @module purecloud-platform-client-v2/api/ExternalContactsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22493,7 +22634,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Fax service.
* @module purecloud-platform-client-v2/api/FaxApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22708,7 +22849,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Flows service.
* @module purecloud-platform-client-v2/api/FlowsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -22891,7 +23032,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Gamification service.
* @module purecloud-platform-client-v2/api/GamificationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -24977,7 +25118,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* GeneralDataProtectionRegulation service.
* @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25107,7 +25248,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Geolocation service.
* @module purecloud-platform-client-v2/api/GeolocationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25238,7 +25379,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Greetings service.
* @module purecloud-platform-client-v2/api/GreetingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -25693,7 +25834,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Groups service.
* @module purecloud-platform-client-v2/api/GroupsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -26212,7 +26353,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* IdentityProvider service.
* @module purecloud-platform-client-v2/api/IdentityProviderApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -27073,7 +27214,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* InfrastructureAsCode service.
* @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -27240,7 +27381,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Integrations service.
* @module purecloud-platform-client-v2/api/IntegrationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -29592,7 +29733,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Journey service.
* @module purecloud-platform-client-v2/api/JourneyApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -31181,7 +31322,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -32535,6 +32676,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* @param {Array.} opts.type If specified, retrieves operations with specified operation type, comma separated values expected.
* @param {Array.} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
* @param {String} opts.interval Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ * @param {Array.} opts.sourceId If specified, retrieves operations associated with source ids, comma separated values expected.
* getKnowledgeKnowledgebaseOperations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts) {
@@ -32549,7 +32691,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
'/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations',
'GET',
{ 'knowledgeBaseId': knowledgeBaseId },
- { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'type': this.apiClient.buildCollectionParam(opts['type'], 'multi'),'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'interval': opts['interval'] },
+ { 'before': opts['before'],'after': opts['after'],'pageSize': opts['pageSize'],'userId': this.apiClient.buildCollectionParam(opts['userId'], 'multi'),'type': this.apiClient.buildCollectionParam(opts['type'], 'multi'),'status': this.apiClient.buildCollectionParam(opts['status'], 'multi'),'interval': opts['interval'],'sourceId': this.apiClient.buildCollectionParam(opts['sourceId'], 'multi') },
{ },
{ },
null,
@@ -34424,7 +34566,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35458,7 +35600,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Languages service.
* @module purecloud-platform-client-v2/api/LanguagesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35680,7 +35822,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Learning service.
* @module purecloud-platform-client-v2/api/LearningApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -35774,6 +35916,41 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.shareableContentObjectId The ID of SCO to load
+ * @param {Array.} opts.expand Fields to expand in response
+ */
+ getLearningAssignmentStep(assignmentId, stepId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'assignmentId' is set
+ if (assignmentId === undefined || assignmentId === null) {
+ throw 'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';
+ }
+ // verify the required parameter 'stepId' is set
+ if (stepId === undefined || stepId === null) {
+ throw 'Missing the required parameter "stepId" when calling getLearningAssignmentStep';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
+ 'GET',
+ { 'assignmentId': assignmentId,'stepId': stepId },
+ { 'shareableContentObjectId': opts['shareableContentObjectId'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi') },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* List of Learning module Assignments
* Either moduleId or user value is required
@@ -35908,6 +36085,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get a learning module preview
+ *
+ * @param {String} moduleId The ID of the learning module
+ */
+ getLearningModulePreview(moduleId) {
+ // verify the required parameter 'moduleId' is set
+ if (moduleId === undefined || moduleId === null) {
+ throw 'Missing the required parameter "moduleId" when calling getLearningModulePreview';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/modules/{moduleId}/preview',
+ 'GET',
+ { 'moduleId': moduleId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get a learning module rule
*
@@ -36060,6 +36262,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get Learning SCORM Result
+ *
+ * @param {String} scormId The ID of the SCORM package
+ */
+ getLearningScormScormId(scormId) {
+ // verify the required parameter 'scormId' is set
+ if (scormId === undefined || scormId === null) {
+ throw 'Missing the required parameter "scormId" when calling getLearningScormScormId';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/scorm/{scormId}',
+ 'GET',
+ { 'scormId': scormId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update Learning Assignment
*
@@ -36118,6 +36345,40 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Update Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The Learning Assignment Step to be updated
+ */
+ patchLearningAssignmentStep(assignmentId, stepId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'assignmentId' is set
+ if (assignmentId === undefined || assignmentId === null) {
+ throw 'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';
+ }
+ // verify the required parameter 'stepId' is set
+ if (stepId === undefined || stepId === null) {
+ throw 'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/assignments/{assignmentId}/steps/{stepId}',
+ 'PATCH',
+ { 'assignmentId': assignmentId,'stepId': stepId },
+ { },
+ { },
+ { },
+ opts['body'],
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update an external assignment for a specific user
*
@@ -36469,6 +36730,30 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Create a SCORM package upload request
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The SCORM package to be uploaded
+ */
+ postLearningScorm(opts) {
+ opts = opts || {};
+
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/scorm',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ opts['body'],
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update a learning module
* This will update the name, description, completion time in days and inform steps for a learning module
@@ -36499,6 +36784,36 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Update a learning module preview
+ * This will update a learning module preview
+ * @param {String} moduleId The ID of the learning module
+ * @param {Object} body The learning module to be updated
+ */
+ putLearningModulePreview(moduleId, body) {
+ // verify the required parameter 'moduleId' is set
+ if (moduleId === undefined || moduleId === null) {
+ throw 'Missing the required parameter "moduleId" when calling putLearningModulePreview';
+ }
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling putLearningModulePreview';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/learning/modules/{moduleId}/preview',
+ 'PUT',
+ { 'moduleId': moduleId },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update a learning module rule
* This will update a learning module rule with the specified fields.
@@ -36535,7 +36850,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* License service.
* @module purecloud-platform-client-v2/api/LicenseApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -36773,7 +37088,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Locations service.
* @module purecloud-platform-client-v2/api/LocationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37009,7 +37324,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* LogCapture service.
* @module purecloud-platform-client-v2/api/LogCaptureApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37209,7 +37524,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Messaging service.
* @module purecloud-platform-client-v2/api/MessagingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37568,7 +37883,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* MobileDevices service.
* @module purecloud-platform-client-v2/api/MobileDevicesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37719,7 +38034,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Notifications service.
* @module purecloud-platform-client-v2/api/NotificationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -37952,7 +38267,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OAuth service.
* @module purecloud-platform-client-v2/api/OAuthApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38318,7 +38633,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Objects service.
* @module purecloud-platform-client-v2/api/ObjectsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38588,7 +38903,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OperationalEvents service.
* @module purecloud-platform-client-v2/api/OperationalEventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -38654,7 +38969,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -39129,7 +39444,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* OrganizationAuthorization service.
* @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -40476,7 +40791,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Outbound service.
* @module purecloud-platform-client-v2/api/OutboundApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -44842,7 +45157,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Presence service.
* @module purecloud-platform-client-v2/api/PresenceApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -45586,7 +45901,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ProcessAutomation service.
* @module purecloud-platform-client-v2/api/ProcessAutomationApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -45825,7 +46140,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Quality service.
* @module purecloud-platform-client-v2/api/QualityApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -47582,7 +47897,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Recording service.
* @module purecloud-platform-client-v2/api/RecordingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -49240,7 +49555,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ResponseManagement service.
* @module purecloud-platform-client-v2/api/ResponseManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -49750,7 +50065,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Routing service.
* @module purecloud-platform-client-v2/api/RoutingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -50211,7 +50526,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* @param {String} labelId Utilization Label ID
* @param {Object} opts Optional parameters
* @param {Boolean} opts.forceDelete Remove all label usages (if found) without warning (default to false)
- * deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
deleteRoutingUtilizationLabel(labelId, opts) {
opts = opts || {};
@@ -51730,7 +52044,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* Get details about this utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabel(labelId) {
// verify the required parameter 'labelId' is set
@@ -51756,7 +52069,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* Get list of agent ids associated with a utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabelAgents(labelId) {
// verify the required parameter 'labelId' is set
@@ -51786,7 +52098,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* @param {Number} opts.pageNumber Page number (default to 1)
* @param {Object} opts.sortOrder Sort order by name (default to ascending)
* @param {String} opts.name Utilization label's name (Wildcard is supported, e.g., 'label1*', '*label*'
- * getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
getRoutingUtilizationLabels(opts) {
opts = opts || {};
@@ -53209,7 +53520,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
* Create a utilization label
*
* @param {Object} body UtilizationLabel
- * postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
postRoutingUtilizationLabels(body) {
// verify the required parameter 'body' is set
@@ -53602,7 +53912,6 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
*
* @param {String} labelId Utilization Label ID
* @param {Object} body UtilizationLabel
- * putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/
putRoutingUtilizationLabel(labelId, body) {
// verify the required parameter 'labelId' is set
@@ -53729,7 +54038,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* SCIM service.
* @module purecloud-platform-client-v2/api/SCIMApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -54606,7 +54915,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* ScreenRecording service.
* @module purecloud-platform-client-v2/api/ScreenRecordingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -54651,7 +54960,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Scripts service.
* @module purecloud-platform-client-v2/api/ScriptsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55095,7 +55404,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Search service.
* @module purecloud-platform-client-v2/api/SearchApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55784,7 +56093,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Settings service.
* @module purecloud-platform-client-v2/api/SettingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55896,7 +56205,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -55911,6 +56220,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
}
+ /**
+ * Delete a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */
+ deleteSpeechandtextanalyticsCategory(categoryId) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'DELETE',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Delete a Speech and Text Analytics DictionaryFeedback by Id
*
@@ -56035,6 +56369,60 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get the list of Speech and Text Analytics categories
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ * @param {String} opts.name The category name filter applied to the listing
+ * @param {Object} opts.sortOrder The sort order for the listing (default to asc)
+ * @param {Object} opts.sortBy The field to sort by for the listing (default to name)
+ * @param {Array.} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
+ */
+ getSpeechandtextanalyticsCategories(opts) {
+ opts = opts || {};
+
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories',
+ 'GET',
+ { },
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'name': opts['name'],'sortOrder': opts['sortOrder'],'sortBy': opts['sortBy'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi') },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
+ /**
+ * Get a Speech and Text Analytics Category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */
+ getSpeechandtextanalyticsCategory(categoryId) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'GET',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get Speech and Text Analytics for a specific conversation
*
@@ -56060,6 +56448,36 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Get the list of detected Speech and Text Analytics categories of conversation
+ *
+ * @param {String} conversationId The id of the conversation
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ */
+ getSpeechandtextanalyticsConversationCategories(conversationId, opts) {
+ opts = opts || {};
+
+ // verify the required parameter 'conversationId' is set
+ if (conversationId === undefined || conversationId === null) {
+ throw 'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/conversations/{conversationId}/categories',
+ 'GET',
+ { 'conversationId': conversationId },
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'] },
+ { },
+ { },
+ null,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Get the pre-signed S3 URL for the transcript of a specific communication of a conversation
*
@@ -56630,6 +57048,31 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Create new Speech and Text Analytics category
+ *
+ * @param {Object} body The category to create
+ */
+ postSpeechandtextanalyticsCategories(body) {
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories',
+ 'POST',
+ { },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Create a Speech and Text Analytics DictionaryFeedback
*
@@ -56830,6 +57273,36 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
);
}
+ /**
+ * Update a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ * @param {Object} body The updated category
+ */
+ putSpeechandtextanalyticsCategory(categoryId, body) {
+ // verify the required parameter 'categoryId' is set
+ if (categoryId === undefined || categoryId === null) {
+ throw 'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';
+ }
+ // verify the required parameter 'body' is set
+ if (body === undefined || body === null) {
+ throw 'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';
+ }
+
+ return this.apiClient.callApi(
+ '/api/v2/speechandtextanalytics/categories/{categoryId}',
+ 'PUT',
+ { 'categoryId': categoryId },
+ { },
+ { },
+ { },
+ body,
+ ['PureCloud OAuth'],
+ ['application/json'],
+ ['application/json']
+ );
+ }
+
/**
* Update existing Speech and Text Analytics dictionary feedback by id
*
@@ -57010,7 +57483,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Stations service.
* @module purecloud-platform-client-v2/api/StationsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -57112,7 +57585,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Suggest service.
* @module purecloud-platform-client-v2/api/SuggestApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -57251,7 +57724,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* TaskManagement service.
* @module purecloud-platform-client-v2/api/TaskManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -58599,7 +59072,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Teams service.
* @module purecloud-platform-client-v2/api/TeamsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -58900,7 +59373,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Telephony service.
* @module purecloud-platform-client-v2/api/TelephonyApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -59082,7 +59555,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* TelephonyProvidersEdge service.
* @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62410,7 +62883,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Textbots service.
* @module purecloud-platform-client-v2/api/TextbotsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62538,7 +63011,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Tokens service.
* @module purecloud-platform-client-v2/api/TokensApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62692,7 +63165,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Uploads service.
* @module purecloud-platform-client-v2/api/UploadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -62961,7 +63434,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Usage service.
* @module purecloud-platform-client-v2/api/UsageApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -63176,7 +63649,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* UserRecordings service.
* @module purecloud-platform-client-v2/api/UserRecordingsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -63361,7 +63834,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Users service.
* @module purecloud-platform-client-v2/api/UsersApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66019,7 +66492,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Utilities service.
* @module purecloud-platform-client-v2/api/UtilitiesApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66130,7 +66603,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Voicemail service.
* @module purecloud-platform-client-v2/api/VoicemailApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -66797,7 +67270,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebChat service.
* @module purecloud-platform-client-v2/api/WebChatApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67348,7 +67821,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebDeployments service.
* @module purecloud-platform-client-v2/api/WebDeploymentsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67875,7 +68348,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WebMessaging service.
* @module purecloud-platform-client-v2/api/WebMessagingApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -67921,7 +68394,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* Widgets service.
* @module purecloud-platform-client-v2/api/WidgetsApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -68067,7 +68540,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
/**
* WorkforceManagement service.
* @module purecloud-platform-client-v2/api/WorkforceManagementApi
- * @version 194.0.0
+ * @version 195.0.0
*/
/**
@@ -73980,7 +74453,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form
*
*
* @module purecloud-platform-client-v2/index
- * @version 194.0.0
+ * @version 195.0.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 cfb838ce..97a5cd37 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(["axios","qs"],function(e,i){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a=t(i),o={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 r={levels:{none:0,error:1,debug:2,trace:3}},l={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},s={formats:{JSON:"json",TEXT:"text"}};class p{get logLevelEnum(){return l}get logFormatEnum(){return s}constructor(){this.log_level=l.level.LNone,this.log_format=s.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:r.levels,level:this.log_level}),this.log_file_path&&""!==this.log_file_path&&(this.log_format===s.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===s.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 p,u=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&&(u.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===s.formats.JSON?(p={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"",statusCode:i},u&&(p.requestHeaders=u),d&&(p.responseHeaders=d),c&&(p.requestBody=c),g&&(p.responseBody=g)):p=`${(new Date).toISOString()}\n=== REQUEST === \n${this.formatValue("URL",decodeURIComponent(n))}${this.formatValue("Method",t)}${this.formatValue("Headers",this.formatHeaderString(u))}${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):"")}`,p}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 l.level.LError;case"debug":return l.level.LDebug;case"trace":return l.level.LTrace;default:return l.level.LNone}}getLogFormat(e){switch(e){case"json":return s.formats.JSON;default:return s.formats.TEXT}}}class u{get instance(){return u.instance}set instance(e){u.instance=e}constructor(){if(u.instance||(u.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.logger=new p,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(){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,this.setEnvironment(),this.logger.setLogger()}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}`}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 d{get instance(){return d.instance}set instance(e){d.instance=e}constructor(){d.instance||(d.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.config=new u,"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)}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");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}`};n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:a,data:"grant_type=client_credentials",httpsAgent:this.proxyAgent}).then(i=>{this.config.logger.log("trace",i.status,"POST",`https://login.${this.config.environment}/oauth/token`,a,i.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",i.status,"POST",`https://login.${this.config.environment}/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",`https://login.${this.config.environment}/oauth/token`,a,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})})}loginSaml2BearerGrant(e,i,t,n){return this.clientId=e,new Promise((a,o)=>{if("undefined"==typeof window){var r=Buffer.from(e+":"+i).toString("base64"),l=this._formAuthRequest(r,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});l.proxy=this.proxy;var s={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};l.then(e=>{this.config.logger.log("trace",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,e.headers,s,void 0),this.config.logger.log("debug",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,void 0,s,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(),a(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,e.response.headers,s,e.response.data),o(e)})}else o(new Error("The saml2bearer grant is not supported in a browser."))})}authorizePKCEGrant(e,i,t,o){return this.clientId=e,new Promise((r,l)=>{var s=n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:a.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:o})});s.proxy=this.proxy;var p={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:o};s.then(e=>{this.config.logger.log("trace",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,s.headers,e.headers,p,void 0),this.config.logger.log("debug",e.status,"POST",`https://login.${this.config.environment}/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(),r(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`https://login.${this.config.environment}/oauth/token`,s.headers,e.response.headers,p,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){e.then(n=>{this.config.logger.log("trace",n.status,"POST",`https://login.${this.config.environment}/oauth/token`,e.headers,n.headers,i,void 0),this.config.logger.log("debug",n.status,"POST",`https://login.${this.config.environment}/oauth/token`,e.headers,void 0,i,void 0);var a=n.data.access_token,o=n.data.refresh_token;this.setAccessToken(a),this.authData.refreshToken=o,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",`https://login.${this.config.environment}/oauth/token`,e.headers,t.response.headers,i,t.response.data),n(t)})}_formAuthRequest(e,i){return n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:a.default.stringify(i)})}_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){return i||(i={}),Object.keys(i).reduce((e,t)=>i[t]?`${e}&${t}=${i[t]}`:e,`${this.config.authUrl}/${e}?`)}paramToString(e){return e?e instanceof Date?e.toJSON():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.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.params=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}callApi(e,i,t,a,o,r,l,s,p,u){return new Promise((d,c)=>{!function g(h){var m=h.buildUrl(e,t);var v={method:i,url:m,httpsAgent:h.proxyAgent,timeout:h.timeout,params:h.serialize(a)};h.applyAuthToRequest(v,s);const w=h.defaultHeaders;const C=h.normalizeParams(o);v.headers=h.addHeaders(v.headers,w,C);var I=h.jsonPreferredMime(p);I?v.headers["Content-Type"]=I:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json");if("application/x-www-form-urlencoded"===I)v.data=h.normalizeParams(r);else if("multipart/form-data"==I){var f=h.normalizeParams(r);for(var A in f)if(f.hasOwnProperty(A)){var b=new FormData;b.set(A,f[A]),v.data=b}}else l&&(v.data=l);var j=h.jsonPreferredMime(u);j&&(v.headers.Accept=j);n.default.request(v).then(e=>{var t=!0===h.returnExtended?{status:e.status,statusText:e.statusText,headers:e.headers,body:e.data,text:e.text,error:null}:e.data?e.data:e.text;h.config.logger.log("trace",e.status,i,m,v.headers,e.headers,l,void 0),h.config.logger.log("debug",e.status,i,m,v.headers,void 0,l,void 0),d(t)}).catch(e=>{var t=e;e.response&&401==e.response.status&&h.config.refresh_access_token&&""!==h.authData.refreshToken?h._handleExpiredAccessToken().then(()=>{g(h)}).catch(e=>{c(e)}):e.response&&(h.config.logger.log("error",e.response.status,i,m,v.headers,e.response.headers,l,e.response.data),t=!0===h.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),c(t)})}(this)})}}class c{constructor(e){this.apiClient=e||d.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 g{constructor(e){this.apiClient=e||d.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"])}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},{},{},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"])}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,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"])}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 h{constructor(e){this.apiClient=e||d.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 m{constructor(e){this.apiClient=e||d.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")},{},{},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 v{constructor(e){this.apiClient=e||d.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"])}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"])}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 w{constructor(e){this.apiClient=e||d.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 C{constructor(e){this.apiClient=e||d.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 I{constructor(e){this.apiClient=e||d.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 f{constructor(e){this.apiClient=e||d.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 A{constructor(e){this.apiClient=e||d.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},{redirect:i.redirect,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 b{constructor(e){this.apiClient=e||d.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"])}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"])}getConversationsMessagingSticker(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';return this.apiClient.callApi("/api/v2/conversations/messaging/stickers/{messengerType}","GET",{messengerType:e},{pageSize:i.pageSize,pageNumber:i.pageNumber},{},{},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"])}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"])}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"])}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){if(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},{},{},{},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 j{constructor(e){this.apiClient=e||d.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 P{constructor(e){this.apiClient=e||d.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 y{constructor(e){this.apiClient=e||d.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 O{constructor(e){this.apiClient=e||d.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 M{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}postExternalcontactsIdentifierlookup(e){if(void 0===e||null===e)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","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"])}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 T{constructor(e){this.apiClient=e||d.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 q{constructor(e){this.apiClient=e||d.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 S{constructor(e){this.apiClient=e||d.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 k{constructor(e){this.apiClient=e||d.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 E{constructor(e){this.apiClient=e||d.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 G{constructor(e){this.apiClient=e||d.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 U{constructor(e){this.apiClient=e||d.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 D{constructor(e){this.apiClient=e||d.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 R{constructor(e){this.apiClient=e||d.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 x{constructor(e){this.apiClient=e||d.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){if(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},{},{},{},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){if(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},{},{},{},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"])}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"])}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){if(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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionExecute(e,i){if(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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionTest(e,i){if(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},{},{},{},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 z{constructor(e){this.apiClient=e||d.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"])}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},{},{},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"])}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"])}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"])}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(){return this.apiClient.callApi("/api/v2/journey/views","GET",{},{},{},{},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"])}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"])}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"])}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"])}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"])}}class W{constructor(e){this.apiClient=e||d.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"])}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"])}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},{},{},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},{},{},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},{},{},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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}}class B{constructor(e){this.apiClient=e||d.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 L{constructor(e){this.apiClient=e||d.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 N{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}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"])}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"])}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 K{constructor(e){this.apiClient=e||d.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 J{constructor(e){this.apiClient=e||d.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 V{constructor(e){this.apiClient=e||d.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 F{constructor(e){this.apiClient=e||d.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 Q{constructor(e){this.apiClient=e||d.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 _{constructor(e){this.apiClient=e||d.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 H{constructor(e){this.apiClient=e||d.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 ${constructor(e){this.apiClient=e||d.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 Z{constructor(e){this.apiClient=e||d.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"])}}class X{constructor(e){this.apiClient=e||d.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"])}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"])}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 Y{constructor(e){this.apiClient=e||d.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"])}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"])}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 ee{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}postOutboundAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundAudits';return this.apiClient.callApi("/api/v2/outbound/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,facetsOnly:i.facetsOnly},{},{},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"])}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"])}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 ie{constructor(e){this.apiClient=e||d.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 te{constructor(e){this.apiClient=e||d.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 ne{constructor(e){this.apiClient=e||d.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},{},{},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,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,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},{},{},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"])}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 ae{constructor(e){this.apiClient=e||d.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 oe{constructor(e){this.apiClient=e||d.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 re{constructor(e){this.apiClient=e||d.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"])}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 "addressId" when calling deleteRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{addressId}","DELETE",{addressId: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"])}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"])}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){if(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},{},{},{},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 "addressId" when calling getRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{addressId}","GET",{addressId: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},{},{},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"])}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 "addressId" 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/{addressId}","PUT",{addressId: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 le{constructor(e){this.apiClient=e||d.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 se{constructor(e){this.apiClient=e||d.instance}postScreenrecordingToken(e){return e=e||{},this.apiClient.callApi("/api/v2/screenrecording/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class pe{constructor(e){this.apiClient=e||d.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 ue{constructor(e){this.apiClient=e||d.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"])}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"])}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 de{constructor(e){this.apiClient=e||d.instance}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"])}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"])}}class ce{constructor(e){this.apiClient=e||d.instance}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"])}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"])}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"])}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"])}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"])}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 ge{constructor(e){this.apiClient=e||d.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 he{constructor(e){this.apiClient=e||d.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 me{constructor(e){this.apiClient=e||d.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"])}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"])}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},{},{},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(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeStatus(e,i,t){if(t=t||{},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';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","PATCH",{worktypeId:e,statusId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbins(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workbins","POST",{},{},{},{},e.body,["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"])}postTaskmanagementWorktypeStatuses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypes(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/worktypes","POST",{},{},{},{},e.body,["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 ve{constructor(e){this.apiClient=e||d.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){if(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},{},{},{},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 we{constructor(e){this.apiClient=e||d.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 Ce{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}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"])}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 Ie{constructor(e){this.apiClient=e||d.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 fe{constructor(e){this.apiClient=e||d.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 Ae{constructor(e){this.apiClient=e||d.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 be{constructor(e){this.apiClient=e||d.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 je{constructor(e){this.apiClient=e||d.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"])}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 Pe{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}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 ye{constructor(e){this.apiClient=e||d.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 Oe{constructor(e){this.apiClient=e||d.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"])}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 Me{constructor(e){this.apiClient=e||d.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 Te{constructor(e){this.apiClient=e||d.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 qe{constructor(e){this.apiClient=e||d.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 Se{constructor(e){this.apiClient=e||d.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 ke{constructor(e){this.apiClient=e||d.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"])}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"])}getWorkforcemanagementAdhocmodelingjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdhocmodelingjob';return this.apiClient.callApi("/api/v2/workforcemanagement/adhocmodelingjobs/{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"])}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"])}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"])}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,t){if(t=t||{},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},{recentlyReviewed:t.recentlyReviewed},{},{},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(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","GET",{},{recentlyReviewed:e.recentlyReviewed},{},{},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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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 d,this.ApiClientClass=d,this.AlertingApi=c,this.AnalyticsApi=g,this.ArchitectApi=h,this.AuditApi=m,this.AuthorizationApi=v,this.BillingApi=w,this.CarrierServicesApi=C,this.ChatApi=I,this.CoachingApi=f,this.ContentManagementApi=A,this.ConversationsApi=b,this.DataExtensionsApi=j,this.DownloadsApi=P,this.EmailsApi=y,this.EventsApi=O,this.ExternalContactsApi=M,this.FaxApi=T,this.FlowsApi=q,this.GamificationApi=S,this.GeneralDataProtectionRegulationApi=k,this.GeolocationApi=E,this.GreetingsApi=G,this.GroupsApi=U,this.IdentityProviderApi=D,this.InfrastructureAsCodeApi=R,this.IntegrationsApi=x,this.JourneyApi=z,this.KnowledgeApi=W,this.LanguageUnderstandingApi=B,this.LanguagesApi=L,this.LearningApi=N,this.LicenseApi=K,this.LocationsApi=J,this.LogCaptureApi=V,this.MessagingApi=F,this.MobileDevicesApi=Q,this.NotificationsApi=_,this.OAuthApi=H,this.ObjectsApi=$,this.OperationalEventsApi=Z,this.OrganizationApi=X,this.OrganizationAuthorizationApi=Y,this.OutboundApi=ee,this.PresenceApi=ie,this.ProcessAutomationApi=te,this.QualityApi=ne,this.RecordingApi=ae,this.ResponseManagementApi=oe,this.RoutingApi=re,this.SCIMApi=le,this.ScreenRecordingApi=se,this.ScriptsApi=pe,this.SearchApi=ue,this.SettingsApi=de,this.SpeechTextAnalyticsApi=ce,this.StationsApi=ge,this.SuggestApi=he,this.TaskManagementApi=me,this.TeamsApi=ve,this.TelephonyApi=we,this.TelephonyProvidersEdgeApi=Ce,this.TextbotsApi=Ie,this.TokensApi=fe,this.UploadsApi=Ae,this.UsageApi=be,this.UserRecordingsApi=je,this.UsersApi=Pe,this.UtilitiesApi=ye,this.VoicemailApi=Oe,this.WebChatApi=Me,this.WebDeploymentsApi=Te,this.WebMessagingApi=qe,this.WidgetsApi=Se,this.WorkforceManagementApi=ke,this.PureCloudRegionHosts=o}}});
\ No newline at end of file
+define(["axios","qs"],function(e,i){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e),a=t(i),o={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 r={levels:{none:0,error:1,debug:2,trace:3}},l={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},s={formats:{JSON:"json",TEXT:"text"}};class p{get logLevelEnum(){return l}get logFormatEnum(){return s}constructor(){this.log_level=l.level.LNone,this.log_format=s.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:r.levels,level:this.log_level}),this.log_file_path&&""!==this.log_file_path&&(this.log_format===s.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===s.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 p,u=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&&(u.Authorization="[REDACTED]"),this.log_request_body||(c=void 0),this.log_response_body||(g=void 0),this.log_format&&this.log_format===s.formats.JSON?(p={level:e,date:(new Date).toISOString(),method:t,url:decodeURIComponent(n),correlationId:d&&d["inin-correlation-id"]?d["inin-correlation-id"]:"",statusCode:i},u&&(p.requestHeaders=u),d&&(p.responseHeaders=d),c&&(p.requestBody=c),g&&(p.responseBody=g)):p=`${(new Date).toISOString()}\n=== REQUEST === \n${this.formatValue("URL",decodeURIComponent(n))}${this.formatValue("Method",t)}${this.formatValue("Headers",this.formatHeaderString(u))}${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):"")}`,p}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 l.level.LError;case"debug":return l.level.LDebug;case"trace":return l.level.LTrace;default:return l.level.LNone}}getLogFormat(e){switch(e){case"json":return s.formats.JSON;default:return s.formats.TEXT}}}class u{get instance(){return u.instance}set instance(e){u.instance=e}constructor(){if(u.instance||(u.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.logger=new p,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(){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,this.setEnvironment(),this.logger.setLogger()}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}`}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 d{get instance(){return d.instance}set instance(e){d.instance=e}constructor(){d.instance||(d.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.config=new u,"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)}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");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}`};n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:a,data:"grant_type=client_credentials",httpsAgent:this.proxyAgent}).then(i=>{this.config.logger.log("trace",i.status,"POST",`https://login.${this.config.environment}/oauth/token`,a,i.headers,{grant_type:"client_credentials"},void 0),this.config.logger.log("debug",i.status,"POST",`https://login.${this.config.environment}/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",`https://login.${this.config.environment}/oauth/token`,a,e.response.headers,{grant_type:"client_credentials"},e.response.data),i(e)})})}loginSaml2BearerGrant(e,i,t,n){return this.clientId=e,new Promise((a,o)=>{if("undefined"==typeof window){var r=Buffer.from(e+":"+i).toString("base64"),l=this._formAuthRequest(r,{grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n});l.proxy=this.proxy;var s={grant_type:"urn:ietf:params:oauth:grant-type:saml2-bearer",orgName:t,assertion:n};l.then(e=>{this.config.logger.log("trace",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,e.headers,s,void 0),this.config.logger.log("debug",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,void 0,s,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(),a(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`https://login.${this.config.environment}/oauth/token`,l.headers,e.response.headers,s,e.response.data),o(e)})}else o(new Error("The saml2bearer grant is not supported in a browser."))})}authorizePKCEGrant(e,i,t,o){return this.clientId=e,new Promise((r,l)=>{var s=n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:{"Content-Type":"application/x-www-form-urlencoded"},data:a.default.stringify({grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:o})});s.proxy=this.proxy;var p={grant_type:"authorization_code",code:t,code_verifier:i,client_id:e,redirect_uri:o};s.then(e=>{this.config.logger.log("trace",e.status,"POST",`https://login.${this.config.environment}/oauth/token`,s.headers,e.headers,p,void 0),this.config.logger.log("debug",e.status,"POST",`https://login.${this.config.environment}/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(),r(this.authData)}).catch(e=>{e.response&&this.config.logger.log("error",e.response.status,"POST",`https://login.${this.config.environment}/oauth/token`,s.headers,e.response.headers,p,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){e.then(n=>{this.config.logger.log("trace",n.status,"POST",`https://login.${this.config.environment}/oauth/token`,e.headers,n.headers,i,void 0),this.config.logger.log("debug",n.status,"POST",`https://login.${this.config.environment}/oauth/token`,e.headers,void 0,i,void 0);var a=n.data.access_token,o=n.data.refresh_token;this.setAccessToken(a),this.authData.refreshToken=o,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",`https://login.${this.config.environment}/oauth/token`,e.headers,t.response.headers,i,t.response.data),n(t)})}_formAuthRequest(e,i){return n.default({method:"POST",url:`https://login.${this.config.environment}/oauth/token`,headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:a.default.stringify(i)})}_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){return i||(i={}),Object.keys(i).reduce((e,t)=>i[t]?`${e}&${t}=${i[t]}`:e,`${this.config.authUrl}/${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.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.params=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}callApi(e,i,t,a,o,r,l,s,p,u){return new Promise((d,c)=>{!function g(h){var m=h.buildUrl(e,t);var v={method:i,url:m,httpsAgent:h.proxyAgent,timeout:h.timeout,params:h.serialize(a)};h.applyAuthToRequest(v,s);const w=h.defaultHeaders;const C=h.normalizeParams(o);v.headers=h.addHeaders(v.headers,w,C);var I=h.jsonPreferredMime(p);I?v.headers["Content-Type"]=I:v.headers["Content-Type"]||(v.headers["Content-Type"]="application/json");if("application/x-www-form-urlencoded"===I)v.data=h.normalizeParams(r);else if("multipart/form-data"==I){var f=h.normalizeParams(r);for(var A in f)if(f.hasOwnProperty(A)){var b=new FormData;b.set(A,f[A]),v.data=b}}else l&&(v.data=l);var j=h.jsonPreferredMime(u);j&&(v.headers.Accept=j);n.default.request(v).then(e=>{var t=!0===h.returnExtended?{status:e.status,statusText:e.statusText,headers:e.headers,body:e.data,text:e.text,error:null}:e.data?e.data:e.text;h.config.logger.log("trace",e.status,i,m,v.headers,e.headers,l,void 0),h.config.logger.log("debug",e.status,i,m,v.headers,void 0,l,void 0),d(t)}).catch(e=>{var t=e;e.response&&401==e.response.status&&h.config.refresh_access_token&&""!==h.authData.refreshToken?h._handleExpiredAccessToken().then(()=>{g(h)}).catch(e=>{c(e)}):e.response&&(h.config.logger.log("error",e.response.status,i,m,v.headers,e.response.headers,l,e.response.data),t=!0===h.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),c(t)})}(this)})}}class c{constructor(e){this.apiClient=e||d.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 g{constructor(e){this.apiClient=e||d.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},{},{},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",{},{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,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 h{constructor(e){this.apiClient=e||d.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 m{constructor(e){this.apiClient=e||d.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")},{},{},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 v{constructor(e){this.apiClient=e||d.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"])}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"])}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 w{constructor(e){this.apiClient=e||d.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 C{constructor(e){this.apiClient=e||d.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 I{constructor(e){this.apiClient=e||d.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 f{constructor(e){this.apiClient=e||d.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 A{constructor(e){this.apiClient=e||d.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},{redirect:i.redirect,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 b{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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){if(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},{},{},{},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 j{constructor(e){this.apiClient=e||d.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 P{constructor(e){this.apiClient=e||d.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 y{constructor(e){this.apiClient=e||d.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 O{constructor(e){this.apiClient=e||d.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 M{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}postExternalcontactsIdentifierlookup(e){if(void 0===e||null===e)throw'Missing the required parameter "identifier" when calling postExternalcontactsIdentifierlookup';return this.apiClient.callApi("/api/v2/externalcontacts/identifierlookup","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"])}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 T{constructor(e){this.apiClient=e||d.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 q{constructor(e){this.apiClient=e||d.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 S{constructor(e){this.apiClient=e||d.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 k{constructor(e){this.apiClient=e||d.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 E{constructor(e){this.apiClient=e||d.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 G{constructor(e){this.apiClient=e||d.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 U{constructor(e){this.apiClient=e||d.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 D{constructor(e){this.apiClient=e||d.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 x{constructor(e){this.apiClient=e||d.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 R{constructor(e){this.apiClient=e||d.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){if(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},{},{},{},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){if(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},{},{},{},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"])}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"])}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){if(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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionExecute(e,i){if(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},{},{},{},i,["PureCloud OAuth"],["application/json"],["application/json"])}postIntegrationsActionTest(e,i){if(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},{},{},{},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 z{constructor(e){this.apiClient=e||d.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"])}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},{},{},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"])}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"])}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"])}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(){return this.apiClient.callApi("/api/v2/journey/views","GET",{},{},{},{},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"])}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"])}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"])}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"])}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"])}}class W{constructor(e){this.apiClient=e||d.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"])}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"])}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},{},{},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},{},{},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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}}class B{constructor(e){this.apiClient=e||d.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 L{constructor(e){this.apiClient=e||d.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 N{constructor(e){this.apiClient=e||d.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,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 K{constructor(e){this.apiClient=e||d.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 J{constructor(e){this.apiClient=e||d.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 V{constructor(e){this.apiClient=e||d.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 F{constructor(e){this.apiClient=e||d.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 Q{constructor(e){this.apiClient=e||d.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 _{constructor(e){this.apiClient=e||d.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 H{constructor(e){this.apiClient=e||d.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 ${constructor(e){this.apiClient=e||d.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 Z{constructor(e){this.apiClient=e||d.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"])}}class X{constructor(e){this.apiClient=e||d.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"])}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"])}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 Y{constructor(e){this.apiClient=e||d.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"])}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"])}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 ee{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}postOutboundAudits(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "body" when calling postOutboundAudits';return this.apiClient.callApi("/api/v2/outbound/audits","POST",{},{pageSize:i.pageSize,pageNumber:i.pageNumber,sortBy:i.sortBy,sortOrder:i.sortOrder,facetsOnly:i.facetsOnly},{},{},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"])}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"])}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 ie{constructor(e){this.apiClient=e||d.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 te{constructor(e){this.apiClient=e||d.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 ne{constructor(e){this.apiClient=e||d.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},{},{},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,sortBy:e.sortBy,expand:this.apiClient.buildCollectionParam(e.expand,"multi"),nextPage:e.nextPage,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},{},{},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"])}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 ae{constructor(e){this.apiClient=e||d.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 oe{constructor(e){this.apiClient=e||d.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 re{constructor(e){this.apiClient=e||d.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"])}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 "addressId" when calling deleteRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{addressId}","DELETE",{addressId: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"])}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"])}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){if(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},{},{},{},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 "addressId" when calling getRoutingSmsPhonenumber';return this.apiClient.callApi("/api/v2/routing/sms/phonenumbers/{addressId}","GET",{addressId: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},{},{},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"])}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 "addressId" 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/{addressId}","PUT",{addressId: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 le{constructor(e){this.apiClient=e||d.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 se{constructor(e){this.apiClient=e||d.instance}postScreenrecordingToken(e){return e=e||{},this.apiClient.callApi("/api/v2/screenrecording/token","POST",{},{},{},{},e.body,["PureCloud OAuth"],["application/json"],["application/json"])}}class pe{constructor(e){this.apiClient=e||d.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 ue{constructor(e){this.apiClient=e||d.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"])}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"])}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 de{constructor(e){this.apiClient=e||d.instance}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"])}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"])}}class ce{constructor(e){this.apiClient=e||d.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"])}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 ge{constructor(e){this.apiClient=e||d.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 he{constructor(e){this.apiClient=e||d.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 me{constructor(e){this.apiClient=e||d.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"])}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"])}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},{},{},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(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling patchTaskmanagementWorktype';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}","PATCH",{worktypeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}patchTaskmanagementWorktypeStatus(e,i,t){if(t=t||{},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';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses/{statusId}","PATCH",{worktypeId:e,statusId:i},{},{},{},t.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorkbins(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/workbins","POST",{},{},{},{},e.body,["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"])}postTaskmanagementWorktypeStatuses(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "worktypeId" when calling postTaskmanagementWorktypeStatuses';return this.apiClient.callApi("/api/v2/taskmanagement/worktypes/{worktypeId}/statuses","POST",{worktypeId:e},{},{},{},i.body,["PureCloud OAuth"],["application/json"],["application/json"])}postTaskmanagementWorktypes(e){return e=e||{},this.apiClient.callApi("/api/v2/taskmanagement/worktypes","POST",{},{},{},{},e.body,["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 ve{constructor(e){this.apiClient=e||d.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){if(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},{},{},{},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 we{constructor(e){this.apiClient=e||d.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 Ce{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}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"])}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 Ie{constructor(e){this.apiClient=e||d.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 fe{constructor(e){this.apiClient=e||d.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 Ae{constructor(e){this.apiClient=e||d.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 be{constructor(e){this.apiClient=e||d.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 je{constructor(e){this.apiClient=e||d.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"])}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 Pe{constructor(e){this.apiClient=e||d.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"])}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"])}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"])}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"])}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 ye{constructor(e){this.apiClient=e||d.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 Oe{constructor(e){this.apiClient=e||d.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"])}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 Me{constructor(e){this.apiClient=e||d.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 Te{constructor(e){this.apiClient=e||d.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 qe{constructor(e){this.apiClient=e||d.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 Se{constructor(e){this.apiClient=e||d.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 ke{constructor(e){this.apiClient=e||d.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"])}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"])}getWorkforcemanagementAdhocmodelingjob(e){if(void 0===e||null===e)throw'Missing the required parameter "jobId" when calling getWorkforcemanagementAdhocmodelingjob';return this.apiClient.callApi("/api/v2/workforcemanagement/adhocmodelingjobs/{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"])}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"])}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"])}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,t){if(t=t||{},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},{recentlyReviewed:t.recentlyReviewed},{},{},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(e){return e=e||{},this.apiClient.callApi("/api/v2/workforcemanagement/timeoffrequests","GET",{},{recentlyReviewed:e.recentlyReviewed},{},{},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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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"])}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 d,this.ApiClientClass=d,this.AlertingApi=c,this.AnalyticsApi=g,this.ArchitectApi=h,this.AuditApi=m,this.AuthorizationApi=v,this.BillingApi=w,this.CarrierServicesApi=C,this.ChatApi=I,this.CoachingApi=f,this.ContentManagementApi=A,this.ConversationsApi=b,this.DataExtensionsApi=j,this.DownloadsApi=P,this.EmailsApi=y,this.EventsApi=O,this.ExternalContactsApi=M,this.FaxApi=T,this.FlowsApi=q,this.GamificationApi=S,this.GeneralDataProtectionRegulationApi=k,this.GeolocationApi=E,this.GreetingsApi=G,this.GroupsApi=U,this.IdentityProviderApi=D,this.InfrastructureAsCodeApi=x,this.IntegrationsApi=R,this.JourneyApi=z,this.KnowledgeApi=W,this.LanguageUnderstandingApi=B,this.LanguagesApi=L,this.LearningApi=N,this.LicenseApi=K,this.LocationsApi=J,this.LogCaptureApi=V,this.MessagingApi=F,this.MobileDevicesApi=Q,this.NotificationsApi=_,this.OAuthApi=H,this.ObjectsApi=$,this.OperationalEventsApi=Z,this.OrganizationApi=X,this.OrganizationAuthorizationApi=Y,this.OutboundApi=ee,this.PresenceApi=ie,this.ProcessAutomationApi=te,this.QualityApi=ne,this.RecordingApi=ae,this.ResponseManagementApi=oe,this.RoutingApi=re,this.SCIMApi=le,this.ScreenRecordingApi=se,this.ScriptsApi=pe,this.SearchApi=ue,this.SettingsApi=de,this.SpeechTextAnalyticsApi=ce,this.StationsApi=ge,this.SuggestApi=he,this.TaskManagementApi=me,this.TeamsApi=ve,this.TelephonyApi=we,this.TelephonyProvidersEdgeApi=Ce,this.TextbotsApi=Ie,this.TokensApi=fe,this.UploadsApi=Ae,this.UsageApi=be,this.UserRecordingsApi=je,this.UsersApi=Pe,this.UtilitiesApi=ye,this.VoicemailApi=Oe,this.WebChatApi=Me,this.WebDeploymentsApi=Te,this.WebMessagingApi=qe,this.WidgetsApi=Se,this.WorkforceManagementApi=ke,this.PureCloudRegionHosts=o}}});
\ No newline at end of file
diff --git a/build/dist/web-cjs/bundle.js b/build/dist/web-cjs/bundle.js
index 20e8cd97..86a8ebfa 100644
--- a/build/dist/web-cjs/bundle.js
+++ b/build/dist/web-cjs/bundle.js
@@ -855,7 +855,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(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:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 194.0.0
+ * @version 195.0.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
@@ -1084,7 +1084,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
* Returns a string representation for an actual parameter.
* @param param The actual parameter.
* @returns {String} The string representation of param
.
- */},{key:"paramToString",value:function paramToString(param){if(!param){return'';}if(param instanceof Date){return param.toJSON();}return param.toString();}/**
+ */},{key:"paramToString",value:function paramToString(param){if(!param){return'';}if(param instanceof Date){return param.toJSON();}if(param instanceof Boolean){return param.toString().toLowerCase();}return param.toString();}/**
* Returns query parameters serialized in the format needed for an axios request.
* @param param The unserialized query parameters.
* @returns {Object} The serialized representation the query parameters.
@@ -1167,7 +1167,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 AlertingApi=/*#__PURE__*/function(){/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AlertingApi.
* @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -1324,7 +1324,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -1356,6 +1356,20 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
* getAnalyticsActionsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getAnalyticsActionsAggregatesJobResults",value:function getAnalyticsActionsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get status for async query for agent copilot aggregates
+ *
+ * @param {String} jobId jobId
+ * getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"getAnalyticsAgentcopilotsAggregatesJob",value:function getAnalyticsAgentcopilotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
+if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Fetch a page of results for an async aggregates query
+ *
+ * @param {String} jobId jobId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.cursor Cursor token to retrieve next page
+ * getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"getAnalyticsAgentcopilotsAggregatesJobResults",value:function getAnalyticsAgentcopilotsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
+if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get Reporting Turns (division aware).
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
* @param {String} botFlowId ID of the bot flow.
@@ -1547,6 +1561,17 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* Get AnalyticsReportingSettings for an organization
*
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get list of dashboard configurations
+ *
+ * @param {Object} dashboardType List dashboard of given type
+ * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.sortBy (default to desc)
+ * @param {Number} opts.pageNumber (default to 1)
+ * @param {Number} opts.pageSize (default to 9)
+ */},{key:"getAnalyticsReportingSettingsDashboardsQuery",value:function getAnalyticsReportingSettingsDashboardsQuery(dashboardType,dashboardAccessFilter,opts){opts=opts||{};// verify the required parameter 'dashboardType' is set
+if(dashboardType===undefined||dashboardType===null){throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';}// verify the required parameter 'dashboardAccessFilter' is set
+if(dashboardAccessFilter===undefined||dashboardAccessFilter===null){throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','GET',{},{'dashboardType':dashboardType,'dashboardAccessFilter':dashboardAccessFilter,'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of dashboards for an user
*
* @param {String} userId User ID
@@ -1661,6 +1686,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body query
*/},{key:"postAnalyticsActionsAggregatesQuery",value:function postAnalyticsActionsAggregatesQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Query for agent copilot aggregates asynchronously
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"postAnalyticsAgentcopilotsAggregatesJobs",value:function postAnalyticsAgentcopilotsAggregatesJobs(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Query for agent copilot aggregates
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Query for bot aggregates asynchronously
*
* @param {Object} body query
@@ -1786,8 +1823,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body query
*/},{key:"postAnalyticsQueuesObservationsQuery",value:function postAnalyticsQueuesObservationsQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/queues/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
- * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
- *
+ * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
+ * The max property can be used to determine estimated rate limit value hit.
* @param {Object} body query
*/},{key:"postAnalyticsRatelimitsAggregatesQuery",value:function postAnalyticsRatelimitsAggregatesQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/ratelimits/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -1908,7 +1945,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ArchitectApi.
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -3024,7 +3061,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AuditApi.
* @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -3073,7 +3110,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -3388,7 +3425,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new BillingApi.
* @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -3412,7 +3449,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new CarrierServicesApi.
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -3432,7 +3469,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ChatApi.
* @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -3657,7 +3694,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new CoachingApi.
* @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -3810,7 +3847,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ContentManagementApi.
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -4093,7 +4130,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ConversationsApi.
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -4662,15 +4699,6 @@ if(messageSettingId===undefined||messageSettingId===null){throw'Missing the requ
* Get the organization's default settings that will be used as the default when creating an integration.
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
*/},{key:"getConversationsMessagingSettingsDefault",value:function getConversationsMessagingSettingsDefault(){return this.apiClient.callApi('/api/v2/conversations/messaging/settings/default','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
- * Get a list of Messaging Stickers (Deprecated)
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
- * @param {Object} messengerType Messenger Type
- * @param {Object} opts Optional parameters
- * @param {Number} opts.pageSize Page size (default to 25)
- * @param {Number} opts.pageNumber Page number (default to 1)
- * @deprecated
- */},{key:"getConversationsMessagingSticker",value:function getConversationsMessagingSticker(messengerType,opts){opts=opts||{};// verify the required parameter 'messengerType' is set
-if(messengerType===undefined||messengerType===null){throw'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';}return this.apiClient.callApi('/api/v2/conversations/messaging/stickers/{messengerType}','GET',{'messengerType':messengerType},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get a list of Supported Content profiles
*
* @param {Object} opts Optional parameters
@@ -5445,6 +5473,11 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';}// verify the required parameter 'participantId' is set
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
+ *
+ * @param {String} conversationId conversationId
+ */},{key:"postConversationsEmailReconnect",value:function postConversationsEmailReconnect(conversationId){// verify the required parameter 'conversationId' is set
+if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/reconnect','POST',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create an email conversation
* If the direction of the request is INBOUND, this will create an external conversation with a third party provider. If the direction of the the request is OUTBOUND, this will create a conversation to send outbound emails on behalf of a queue.
* @param {Object} body Create email request
@@ -5777,7 +5810,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new DataExtensionsApi.
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -5798,7 +5831,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 DownloadsApi=/*#__PURE__*/function(){/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new DownloadsApi.
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -5817,7 +5850,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new EmailsApi.
* @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -5835,7 +5868,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 EventsApi=/*#__PURE__*/function(){/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new EventsApi.
* @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -5860,7 +5893,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ExternalContactsApi.
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -6315,7 +6348,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new FaxApi.
* @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -6364,7 +6397,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new FlowsApi.
* @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -6412,7 +6445,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GamificationApi.
* @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -6952,7 +6985,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GeneralDataProtectionRegulationApi.
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -6987,7 +7020,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GeolocationApi.
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -7021,7 +7054,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GreetingsApi.
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -7128,7 +7161,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GroupsApi.
* @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -7261,7 +7294,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new IdentityProviderApi.
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -7417,7 +7450,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new InfrastructureAsCodeApi.
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -7471,7 +7504,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new IntegrationsApi.
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -8082,7 +8115,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new JourneyApi.
* @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -8470,7 +8503,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new KnowledgeApi.
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -8883,9 +8916,10 @@ if(languageCode===undefined||languageCode===null){throw'Missing the required par
* @param {Array.} opts.type If specified, retrieves operations with specified operation type, comma separated values expected.
* @param {Array.} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
* @param {String} opts.interval Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ * @param {Array.} opts.sourceId If specified, retrieves operations associated with source ids, comma separated values expected.
* getKnowledgeKnowledgebaseOperations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getKnowledgeKnowledgebaseOperations",value:function getKnowledgeKnowledgebaseOperations(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
-if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations','GET',{'knowledgeBaseId':knowledgeBaseId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'interval':opts['interval']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations','GET',{'knowledgeBaseId':knowledgeBaseId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'interval':opts['interval'],'sourceId':this.apiClient.buildCollectionParam(opts['sourceId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get ids of operation creator users and oauth clients
*
* @param {String} knowledgeBaseId Knowledge base ID
@@ -9382,7 +9416,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 postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LanguageUnderstandingApi.
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -9642,7 +9676,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LanguagesApi.
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -9697,7 +9731,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LearningApi.
* @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -9722,6 +9756,16 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
* @param {Array.} opts.expand Fields to expand in response
*/},{key:"getLearningAssignment",value:function getLearningAssignment(assignmentId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling getLearningAssignment';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}','GET',{'assignmentId':assignmentId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.shareableContentObjectId The ID of SCO to load
+ * @param {Array.} opts.expand Fields to expand in response
+ */},{key:"getLearningAssignmentStep",value:function getLearningAssignmentStep(assignmentId,stepId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
+if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';}// verify the required parameter 'stepId' is set
+if(stepId===undefined||stepId===null){throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/steps/{stepId}','GET',{'assignmentId':assignmentId,'stepId':stepId},{'shareableContentObjectId':opts['shareableContentObjectId'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* List of Learning module Assignments
* Either moduleId or user value is required
* @param {Object} opts Optional parameters
@@ -9773,6 +9817,11 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
*/},{key:"getLearningModuleJob",value:function getLearningModuleJob(moduleId,jobId){// verify the required parameter 'moduleId' is set
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';}// verify the required parameter 'jobId' is set
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getLearningModuleJob';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/jobs/{jobId}','GET',{'moduleId':moduleId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get a learning module preview
+ *
+ * @param {String} moduleId The ID of the learning module
+ */},{key:"getLearningModulePreview",value:function getLearningModulePreview(moduleId){// verify the required parameter 'moduleId' is set
+if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling getLearningModulePreview';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/preview','GET',{'moduleId':moduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get a learning module rule
*
* @param {String} moduleId The ID of the learning module
@@ -9819,6 +9868,11 @@ if(userIds===undefined||userIds===null){throw'Missing the required parameter "us
* @param {String} coverArtId Key identifier for the cover art
*/},{key:"getLearningModulesCoverartCoverArtId",value:function getLearningModulesCoverartCoverArtId(coverArtId){// verify the required parameter 'coverArtId' is set
if(coverArtId===undefined||coverArtId===null){throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';}return this.apiClient.callApi('/api/v2/learning/modules/coverart/{coverArtId}','GET',{'coverArtId':coverArtId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get Learning SCORM Result
+ *
+ * @param {String} scormId The ID of the SCORM package
+ */},{key:"getLearningScormScormId",value:function getLearningScormScormId(scormId){// verify the required parameter 'scormId' is set
+if(scormId===undefined||scormId===null){throw'Missing the required parameter "scormId" when calling getLearningScormScormId';}return this.apiClient.callApi('/api/v2/learning/scorm/{scormId}','GET',{'scormId':scormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update Learning Assignment
*
* @param {String} assignmentId The ID of Learning Assignment
@@ -9833,6 +9887,15 @@ if(assignmentId===undefined||assignmentId===null){throw'Missing the required par
* @param {Object} opts.body The Learning assignment reschedule model
*/},{key:"patchLearningAssignmentReschedule",value:function patchLearningAssignmentReschedule(assignmentId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/reschedule','PATCH',{'assignmentId':assignmentId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The Learning Assignment Step to be updated
+ */},{key:"patchLearningAssignmentStep",value:function patchLearningAssignmentStep(assignmentId,stepId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
+if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';}// verify the required parameter 'stepId' is set
+if(stepId===undefined||stepId===null){throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/steps/{stepId}','PATCH',{'assignmentId':assignmentId,'stepId':stepId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update an external assignment for a specific user
*
* @param {String} moduleId Key identifier for the module
@@ -9910,6 +9973,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body The slot search request
*/},{key:"postLearningScheduleslotsQuery",value:function postLearningScheduleslotsQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/learning/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Create a SCORM package upload request
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The SCORM package to be uploaded
+ */},{key:"postLearningScorm",value:function postLearningScorm(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/scorm','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update a learning module
* This will update the name, description, completion time in days and inform steps for a learning module
* @param {String} moduleId The ID of the learning module
@@ -9917,6 +9985,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putLearningModule",value:function putLearningModule(moduleId,body){// verify the required parameter 'moduleId' is set
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModule';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update a learning module preview
+ * This will update a learning module preview
+ * @param {String} moduleId The ID of the learning module
+ * @param {Object} body The learning module to be updated
+ */},{key:"putLearningModulePreview",value:function putLearningModulePreview(moduleId,body){// verify the required parameter 'moduleId' is set
+if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';}// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModulePreview';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/preview','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update a learning module rule
* This will update a learning module rule with the specified fields.
* @param {String} moduleId The ID of the learning module
@@ -9926,7 +10001,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LicenseApi.
* @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -9980,7 +10055,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LocationsApi.
* @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -10039,7 +10114,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LogCaptureApi.
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -10089,7 +10164,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new MessagingApi.
* @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -10179,7 +10254,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new MobileDevicesApi.
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -10218,7 +10293,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new NotificationsApi.
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -10275,7 +10350,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OAuthApi.
* @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -10360,7 +10435,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ObjectsApi.
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -10431,7 +10506,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OperationalEventsApi.
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -10449,7 +10524,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OrganizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -10554,7 +10629,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OrganizationAuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -10877,7 +10952,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OutboundApi.
* @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -11949,7 +12024,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new PresenceApi.
* @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -12122,7 +12197,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ProcessAutomationApi.
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -12185,7 +12260,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new QualityApi.
* @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -12656,7 +12731,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new RecordingApi.
* @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -13067,7 +13142,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ResponseManagementApi.
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -13188,7 +13263,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new RoutingApi.
* @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -13293,7 +13368,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* @param {String} labelId Utilization Label ID
* @param {Object} opts Optional parameters
* @param {Boolean} opts.forceDelete Remove all label usages (if found) without warning (default to false)
- * deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"deleteRoutingUtilizationLabel",value:function deleteRoutingUtilizationLabel(labelId,opts){opts=opts||{};// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling deleteRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','DELETE',{'labelId':labelId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete an utilization tag
@@ -13683,13 +13757,11 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* Get details about this utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabel",value:function getRoutingUtilizationLabel(labelId){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','GET',{'labelId':labelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of agent ids associated with a utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabelAgents",value:function getRoutingUtilizationLabelAgents(labelId){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabelAgents';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}/agents','GET',{'labelId':labelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of utilization labels
@@ -13699,7 +13771,6 @@ if(labelId===undefined||labelId===null){throw'Missing the required parameter "la
* @param {Number} opts.pageNumber Page number (default to 1)
* @param {Object} opts.sortOrder Sort order by name (default to ascending)
* @param {String} opts.name Utilization label's name (Wildcard is supported, e.g., 'label1*', '*label*'
- * getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabels",value:function getRoutingUtilizationLabels(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/utilization/labels','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get details about this utilization tag
*
@@ -14044,7 +14115,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* Create a utilization label
*
* @param {Object} body UtilizationLabel
- * postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"postRoutingUtilizationLabels",value:function postRoutingUtilizationLabels(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingUtilizationLabels';}return this.apiClient.callApi('/api/v2/routing/utilization/labels','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create an utilization tag
@@ -14133,7 +14203,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*
* @param {String} labelId Utilization Label ID
* @param {Object} body UtilizationLabel
- * putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"putRoutingUtilizationLabel",value:function putRoutingUtilizationLabel(labelId,body){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','PUT',{'labelId':labelId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -14162,7 +14231,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SCIMApi.
* @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -14387,7 +14456,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ScreenRecordingApi.
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -14402,7 +14471,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ScriptsApi.
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -14538,7 +14607,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SearchApi.
* @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -14698,7 +14767,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SettingsApi.
* @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -14726,7 +14795,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 patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SpeechTextAnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -14734,10 +14803,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
*/function SpeechTextAnalyticsApi(apiClient){_classCallCheck(this,SpeechTextAnalyticsApi);this.apiClient=apiClient||ApiClient.instance;}/**
+ * Delete a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsCategory",value:function deleteSpeechandtextanalyticsCategory(categoryId){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','DELETE',{'categoryId':categoryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete a Speech and Text Analytics DictionaryFeedback by Id
*
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
- */return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
+ */},{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null){throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}','DELETE',{'dictionaryFeedbackId':dictionaryFeedbackId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete a Speech and Text Analytics program by id
*
@@ -14759,11 +14833,34 @@ if(sentimentFeedbackId===undefined||sentimentFeedbackId===null){throw'Missing th
* @param {String} topicId The id of the topic
*/},{key:"deleteSpeechandtextanalyticsTopic",value:function deleteSpeechandtextanalyticsTopic(topicId){// verify the required parameter 'topicId' is set
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','DELETE',{'topicId':topicId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get the list of Speech and Text Analytics categories
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ * @param {String} opts.name The category name filter applied to the listing
+ * @param {Object} opts.sortOrder The sort order for the listing (default to asc)
+ * @param {Object} opts.sortBy The field to sort by for the listing (default to name)
+ * @param {Array.} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
+ */},{key:"getSpeechandtextanalyticsCategories",value:function getSpeechandtextanalyticsCategories(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'ids':this.apiClient.buildCollectionParam(opts['ids'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get a Speech and Text Analytics Category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */},{key:"getSpeechandtextanalyticsCategory",value:function getSpeechandtextanalyticsCategory(categoryId){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','GET',{'categoryId':categoryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get Speech and Text Analytics for a specific conversation
*
* @param {String} conversationId Conversation Id
*/},{key:"getSpeechandtextanalyticsConversation",value:function getSpeechandtextanalyticsConversation(conversationId){// verify the required parameter 'conversationId' is set
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversation';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get the list of detected Speech and Text Analytics categories of conversation
+ *
+ * @param {String} conversationId The id of the conversation
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ */},{key:"getSpeechandtextanalyticsConversationCategories",value:function getSpeechandtextanalyticsConversationCategories(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
+if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/categories','GET',{'conversationId':conversationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get the pre-signed S3 URL for the transcript of a specific communication of a conversation
*
* @param {String} conversationId Conversation ID
@@ -14888,6 +14985,11 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
* @param {Object} body Speech And Text Analytics Settings
*/},{key:"patchSpeechandtextanalyticsSettings",value:function patchSpeechandtextanalyticsSettings(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsSettings';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/settings','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Create new Speech and Text Analytics category
+ *
+ * @param {Object} body The category to create
+ */},{key:"postSpeechandtextanalyticsCategories",value:function postSpeechandtextanalyticsCategories(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create a Speech and Text Analytics DictionaryFeedback
*
* @param {Object} body The DictionaryFeedback to create
@@ -14928,6 +15030,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body Search request options
*/},{key:"postSpeechandtextanalyticsTranscriptsSearch",value:function postSpeechandtextanalyticsTranscriptsSearch(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/transcripts/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ * @param {Object} body The updated category
+ */},{key:"putSpeechandtextanalyticsCategory",value:function putSpeechandtextanalyticsCategory(categoryId,body){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';}// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','PUT',{'categoryId':categoryId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update existing Speech and Text Analytics dictionary feedback by id
*
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
@@ -14970,7 +15079,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new StationsApi.
* @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -15002,7 +15111,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SuggestApi.
* @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -15042,7 +15151,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TaskManagementApi.
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -15371,7 +15480,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TeamsApi.
* @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -15449,7 +15558,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TelephonyApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -15496,7 +15605,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TelephonyProvidersEdgeApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -16306,7 +16415,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TextbotsApi.
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -16341,7 +16450,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TokensApi.
* @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -16375,7 +16484,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UploadsApi.
* @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -16441,7 +16550,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UsageApi.
* @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -16495,7 +16604,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UserRecordingsApi.
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -16544,7 +16653,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UsersApi.
* @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -17206,7 +17315,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UtilitiesApi.
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -17233,7 +17342,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new VoicemailApi.
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -17382,7 +17491,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebChatApi.
* @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -17517,7 +17626,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebDeploymentsApi.
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -17638,7 +17747,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebMessagingApi.
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -17654,7 +17763,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WidgetsApi.
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -17689,7 +17798,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WorkforceManagementApi.
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -19169,7 +19278,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
*
*
* @module purecloud-platform-client-v2/index
- * @version 194.0.0
+ * @version 195.0.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 a38935a0..e9cc24ac 100644
--- a/build/dist/web-cjs/purecloud-platform-client-v2.js
+++ b/build/dist/web-cjs/purecloud-platform-client-v2.js
@@ -6054,7 +6054,7 @@ if(env)this.environment=env;else this.environment=this.host?this.host:'mypureclo
this.environment=this.environment.replace(/\/+$/,'');// Strip protocol and subdomain
if(this.environment.startsWith('https://'))this.environment=this.environment.substring(8);if(this.environment.startsWith('http://'))this.environment=this.environment.substring(7);if(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:"getConfigString",value:function getConfigString(section,key){if(this.config._sections[section])return this.config._sections[section][key];}},{key:"getConfigBoolean",value:function getConfigBoolean(section,key){if(this.config._sections[section]&&this.config._sections[section][key]!==undefined){if(typeof this.config._sections[section][key]==='string'){return this.config._sections[section][key]==='true';}else return this.config._sections[section][key];}}},{key:"getConfigInt",value:function getConfigInt(section,key){if(this.config._sections[section]&&this.config._sections[section][key]){if(typeof this.config._sections[section][key]==='string'){return parseInt(this.config._sections[section][key]);}else return this.config._sections[section][key];}}}]);}();/**
* @module purecloud-platform-client-v2/ApiClient
- * @version 194.0.0
+ * @version 195.0.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
@@ -6283,7 +6283,7 @@ this.setAccessToken(this.authentications['PureCloud OAuth'].accessToken);}/**
* Returns a string representation for an actual parameter.
* @param param The actual parameter.
* @returns {String} The string representation of param
.
- */},{key:"paramToString",value:function paramToString(param){if(!param){return'';}if(param instanceof Date){return param.toJSON();}return param.toString();}/**
+ */},{key:"paramToString",value:function paramToString(param){if(!param){return'';}if(param instanceof Date){return param.toJSON();}if(param instanceof Boolean){return param.toString().toLowerCase();}return param.toString();}/**
* Returns query parameters serialized in the format needed for an axios request.
* @param param The unserialized query parameters.
* @returns {Object} The serialized representation the query parameters.
@@ -6366,7 +6366,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 AlertingApi=/*#__PURE__*/function(){/**
* Alerting service.
* @module purecloud-platform-client-v2/api/AlertingApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AlertingApi.
* @alias module:purecloud-platform-client-v2/api/AlertingApi
@@ -6523,7 +6523,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/AnalyticsApi
@@ -6555,6 +6555,20 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
* getAnalyticsActionsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getAnalyticsActionsAggregatesJobResults",value:function getAnalyticsActionsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsActionsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get status for async query for agent copilot aggregates
+ *
+ * @param {String} jobId jobId
+ * getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"getAnalyticsAgentcopilotsAggregatesJob",value:function getAnalyticsAgentcopilotsAggregatesJob(jobId){// verify the required parameter 'jobId' is set
+if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJob';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}','GET',{'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Fetch a page of results for an async aggregates query
+ *
+ * @param {String} jobId jobId
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.cursor Cursor token to retrieve next page
+ * getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"getAnalyticsAgentcopilotsAggregatesJobResults",value:function getAnalyticsAgentcopilotsAggregatesJobResults(jobId,opts){opts=opts||{};// verify the required parameter 'jobId' is set
+if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getAnalyticsAgentcopilotsAggregatesJobResults';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results','GET',{'jobId':jobId},{'cursor':opts['cursor']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get Reporting Turns (division aware).
* Returns the reporting turns for the specified flow, filtered by the clients divisions and grouped by session, in reverse chronological order from the date the session was created, with the reporting turns from the most recent session appearing at the start of the list. For pagination, clients should keep sending requests using the value of nextUri in the response, until its no longer present, only then have all items have been returned. Note: resources returned by this endpoint are not persisted indefinitely, as they are deleted after approximately, but not before, 10 days.
* @param {String} botFlowId ID of the bot flow.
@@ -6746,6 +6760,17 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* Get AnalyticsReportingSettings for an organization
*
*/},{key:"getAnalyticsReportingSettings",value:function getAnalyticsReportingSettings(){return this.apiClient.callApi('/api/v2/analytics/reporting/settings','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get list of dashboard configurations
+ *
+ * @param {Object} dashboardType List dashboard of given type
+ * @param {Object} dashboardAccessFilter Filter dashboard based on the owner of dashboard
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.sortBy (default to desc)
+ * @param {Number} opts.pageNumber (default to 1)
+ * @param {Number} opts.pageSize (default to 9)
+ */},{key:"getAnalyticsReportingSettingsDashboardsQuery",value:function getAnalyticsReportingSettingsDashboardsQuery(dashboardType,dashboardAccessFilter,opts){opts=opts||{};// verify the required parameter 'dashboardType' is set
+if(dashboardType===undefined||dashboardType===null){throw'Missing the required parameter "dashboardType" when calling getAnalyticsReportingSettingsDashboardsQuery';}// verify the required parameter 'dashboardAccessFilter' is set
+if(dashboardAccessFilter===undefined||dashboardAccessFilter===null){throw'Missing the required parameter "dashboardAccessFilter" when calling getAnalyticsReportingSettingsDashboardsQuery';}return this.apiClient.callApi('/api/v2/analytics/reporting/settings/dashboards/query','GET',{},{'dashboardType':dashboardType,'dashboardAccessFilter':dashboardAccessFilter,'sortBy':opts['sortBy'],'pageNumber':opts['pageNumber'],'pageSize':opts['pageSize']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of dashboards for an user
*
* @param {String} userId User ID
@@ -6860,6 +6885,18 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body query
*/},{key:"postAnalyticsActionsAggregatesQuery",value:function postAnalyticsActionsAggregatesQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsActionsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/actions/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Query for agent copilot aggregates asynchronously
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"postAnalyticsAgentcopilotsAggregatesJobs",value:function postAnalyticsAgentcopilotsAggregatesJobs(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesJobs';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/jobs','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Query for agent copilot aggregates
+ *
+ * @param {Object} body query
+ * postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+ */},{key:"postAnalyticsAgentcopilotsAggregatesQuery",value:function postAnalyticsAgentcopilotsAggregatesQuery(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsAgentcopilotsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/agentcopilots/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Query for bot aggregates asynchronously
*
* @param {Object} body query
@@ -6985,8 +7022,8 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body query
*/},{key:"postAnalyticsQueuesObservationsQuery",value:function postAnalyticsQueuesObservationsQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsQueuesObservationsQuery';}return this.apiClient.callApi('/api/v2/analytics/queues/observations/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
- * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
- *
+ * Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
+ * The max property can be used to determine estimated rate limit value hit.
* @param {Object} body query
*/},{key:"postAnalyticsRatelimitsAggregatesQuery",value:function postAnalyticsRatelimitsAggregatesQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postAnalyticsRatelimitsAggregatesQuery';}return this.apiClient.callApi('/api/v2/analytics/ratelimits/aggregates/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -7107,7 +7144,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ArchitectApi.
* @alias module:purecloud-platform-client-v2/api/ArchitectApi
@@ -8223,7 +8260,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AuditApi.
* @alias module:purecloud-platform-client-v2/api/AuditApi
@@ -8272,7 +8309,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new AuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/AuthorizationApi
@@ -8587,7 +8624,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new BillingApi.
* @alias module:purecloud-platform-client-v2/api/BillingApi
@@ -8611,7 +8648,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new CarrierServicesApi.
* @alias module:purecloud-platform-client-v2/api/CarrierServicesApi
@@ -8631,7 +8668,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ChatApi.
* @alias module:purecloud-platform-client-v2/api/ChatApi
@@ -8856,7 +8893,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new CoachingApi.
* @alias module:purecloud-platform-client-v2/api/CoachingApi
@@ -9009,7 +9046,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ContentManagementApi.
* @alias module:purecloud-platform-client-v2/api/ContentManagementApi
@@ -9292,7 +9329,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ConversationsApi.
* @alias module:purecloud-platform-client-v2/api/ConversationsApi
@@ -9861,15 +9898,6 @@ if(messageSettingId===undefined||messageSettingId===null){throw'Missing the requ
* Get the organization's default settings that will be used as the default when creating an integration.
* When an integration is created a settings ID may be assigned to it. If the settings ID is not supplied, the default settings will be assigned to it.
*/},{key:"getConversationsMessagingSettingsDefault",value:function getConversationsMessagingSettingsDefault(){return this.apiClient.callApi('/api/v2/conversations/messaging/settings/default','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
- * Get a list of Messaging Stickers (Deprecated)
- * This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
- * @param {Object} messengerType Messenger Type
- * @param {Object} opts Optional parameters
- * @param {Number} opts.pageSize Page size (default to 25)
- * @param {Number} opts.pageNumber Page number (default to 1)
- * @deprecated
- */},{key:"getConversationsMessagingSticker",value:function getConversationsMessagingSticker(messengerType,opts){opts=opts||{};// verify the required parameter 'messengerType' is set
-if(messengerType===undefined||messengerType===null){throw'Missing the required parameter "messengerType" when calling getConversationsMessagingSticker';}return this.apiClient.callApi('/api/v2/conversations/messaging/stickers/{messengerType}','GET',{'messengerType':messengerType},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get a list of Supported Content profiles
*
* @param {Object} opts Optional parameters
@@ -10644,6 +10672,11 @@ if(communicationId===undefined||communicationId===null){throw'Missing the requir
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsEmailParticipantReplace';}// verify the required parameter 'participantId' is set
if(participantId===undefined||participantId===null){throw'Missing the required parameter "participantId" when calling postConversationsEmailParticipantReplace';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postConversationsEmailParticipantReplace';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace','POST',{'conversationId':conversationId,'participantId':participantId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
+ *
+ * @param {String} conversationId conversationId
+ */},{key:"postConversationsEmailReconnect",value:function postConversationsEmailReconnect(conversationId){// verify the required parameter 'conversationId' is set
+if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling postConversationsEmailReconnect';}return this.apiClient.callApi('/api/v2/conversations/emails/{conversationId}/reconnect','POST',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create an email conversation
* If the direction of the request is INBOUND, this will create an external conversation with a third party provider. If the direction of the the request is OUTBOUND, this will create a conversation to send outbound emails on behalf of a queue.
* @param {Object} body Create email request
@@ -10976,7 +11009,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new DataExtensionsApi.
* @alias module:purecloud-platform-client-v2/api/DataExtensionsApi
@@ -10997,7 +11030,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 DownloadsApi=/*#__PURE__*/function(){/**
* Downloads service.
* @module purecloud-platform-client-v2/api/DownloadsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new DownloadsApi.
* @alias module:purecloud-platform-client-v2/api/DownloadsApi
@@ -11016,7 +11049,7 @@ if(coretypeName===undefined||coretypeName===null){throw'Missing the required par
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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new EmailsApi.
* @alias module:purecloud-platform-client-v2/api/EmailsApi
@@ -11034,7 +11067,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 EventsApi=/*#__PURE__*/function(){/**
* Events service.
* @module purecloud-platform-client-v2/api/EventsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new EventsApi.
* @alias module:purecloud-platform-client-v2/api/EventsApi
@@ -11059,7 +11092,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ExternalContactsApi.
* @alias module:purecloud-platform-client-v2/api/ExternalContactsApi
@@ -11514,7 +11547,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new FaxApi.
* @alias module:purecloud-platform-client-v2/api/FaxApi
@@ -11563,7 +11596,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new FlowsApi.
* @alias module:purecloud-platform-client-v2/api/FlowsApi
@@ -11611,7 +11644,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GamificationApi.
* @alias module:purecloud-platform-client-v2/api/GamificationApi
@@ -12151,7 +12184,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GeneralDataProtectionRegulationApi.
* @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
@@ -12186,7 +12219,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GeolocationApi.
* @alias module:purecloud-platform-client-v2/api/GeolocationApi
@@ -12220,7 +12253,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GreetingsApi.
* @alias module:purecloud-platform-client-v2/api/GreetingsApi
@@ -12327,7 +12360,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new GroupsApi.
* @alias module:purecloud-platform-client-v2/api/GroupsApi
@@ -12460,7 +12493,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new IdentityProviderApi.
* @alias module:purecloud-platform-client-v2/api/IdentityProviderApi
@@ -12616,7 +12649,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new InfrastructureAsCodeApi.
* @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi
@@ -12670,7 +12703,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new IntegrationsApi.
* @alias module:purecloud-platform-client-v2/api/IntegrationsApi
@@ -13281,7 +13314,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new JourneyApi.
* @alias module:purecloud-platform-client-v2/api/JourneyApi
@@ -13669,7 +13702,7 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"postJourneyViewsEncodingsValidate",value:function postJourneyViewsEncodingsValidate(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/journey/views/encodings/validate','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var KnowledgeApi=/*#__PURE__*/function(){/**
* Knowledge service.
* @module purecloud-platform-client-v2/api/KnowledgeApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new KnowledgeApi.
* @alias module:purecloud-platform-client-v2/api/KnowledgeApi
@@ -14082,9 +14115,10 @@ if(languageCode===undefined||languageCode===null){throw'Missing the required par
* @param {Array.} opts.type If specified, retrieves operations with specified operation type, comma separated values expected.
* @param {Array.} opts.status If specified, retrieves operations with specified operation status, comma separated values expected.
* @param {String} opts.interval Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ * @param {Array.} opts.sourceId If specified, retrieves operations associated with source ids, comma separated values expected.
* getKnowledgeKnowledgebaseOperations is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getKnowledgeKnowledgebaseOperations",value:function getKnowledgeKnowledgebaseOperations(knowledgeBaseId,opts){opts=opts||{};// verify the required parameter 'knowledgeBaseId' is set
-if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations','GET',{'knowledgeBaseId':knowledgeBaseId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'interval':opts['interval']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+if(knowledgeBaseId===undefined||knowledgeBaseId===null){throw'Missing the required parameter "knowledgeBaseId" when calling getKnowledgeKnowledgebaseOperations';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations','GET',{'knowledgeBaseId':knowledgeBaseId},{'before':opts['before'],'after':opts['after'],'pageSize':opts['pageSize'],'userId':this.apiClient.buildCollectionParam(opts['userId'],'multi'),'type':this.apiClient.buildCollectionParam(opts['type'],'multi'),'status':this.apiClient.buildCollectionParam(opts['status'],'multi'),'interval':opts['interval'],'sourceId':this.apiClient.buildCollectionParam(opts['sourceId'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get ids of operation creator users and oauth clients
*
* @param {String} knowledgeBaseId Knowledge base ID
@@ -14581,7 +14615,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 postKnowledgeKnowledgebases';}return this.apiClient.callApi('/api/v2/knowledge/knowledgebases','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var LanguageUnderstandingApi=/*#__PURE__*/function(){/**
* LanguageUnderstanding service.
* @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LanguageUnderstandingApi.
* @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi
@@ -14841,7 +14875,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LanguagesApi.
* @alias module:purecloud-platform-client-v2/api/LanguagesApi
@@ -14896,7 +14930,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LearningApi.
* @alias module:purecloud-platform-client-v2/api/LearningApi
@@ -14921,6 +14955,16 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
* @param {Array.} opts.expand Fields to expand in response
*/},{key:"getLearningAssignment",value:function getLearningAssignment(assignmentId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling getLearningAssignment';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}','GET',{'assignmentId':assignmentId},{'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {String} opts.shareableContentObjectId The ID of SCO to load
+ * @param {Array.} opts.expand Fields to expand in response
+ */},{key:"getLearningAssignmentStep",value:function getLearningAssignmentStep(assignmentId,stepId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
+if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling getLearningAssignmentStep';}// verify the required parameter 'stepId' is set
+if(stepId===undefined||stepId===null){throw'Missing the required parameter "stepId" when calling getLearningAssignmentStep';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/steps/{stepId}','GET',{'assignmentId':assignmentId,'stepId':stepId},{'shareableContentObjectId':opts['shareableContentObjectId'],'expand':this.apiClient.buildCollectionParam(opts['expand'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* List of Learning module Assignments
* Either moduleId or user value is required
* @param {Object} opts Optional parameters
@@ -14972,6 +15016,11 @@ if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "
*/},{key:"getLearningModuleJob",value:function getLearningModuleJob(moduleId,jobId){// verify the required parameter 'moduleId' is set
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling getLearningModuleJob';}// verify the required parameter 'jobId' is set
if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId" when calling getLearningModuleJob';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/jobs/{jobId}','GET',{'moduleId':moduleId,'jobId':jobId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get a learning module preview
+ *
+ * @param {String} moduleId The ID of the learning module
+ */},{key:"getLearningModulePreview",value:function getLearningModulePreview(moduleId){// verify the required parameter 'moduleId' is set
+if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling getLearningModulePreview';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/preview','GET',{'moduleId':moduleId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get a learning module rule
*
* @param {String} moduleId The ID of the learning module
@@ -15018,6 +15067,11 @@ if(userIds===undefined||userIds===null){throw'Missing the required parameter "us
* @param {String} coverArtId Key identifier for the cover art
*/},{key:"getLearningModulesCoverartCoverArtId",value:function getLearningModulesCoverartCoverArtId(coverArtId){// verify the required parameter 'coverArtId' is set
if(coverArtId===undefined||coverArtId===null){throw'Missing the required parameter "coverArtId" when calling getLearningModulesCoverartCoverArtId';}return this.apiClient.callApi('/api/v2/learning/modules/coverart/{coverArtId}','GET',{'coverArtId':coverArtId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get Learning SCORM Result
+ *
+ * @param {String} scormId The ID of the SCORM package
+ */},{key:"getLearningScormScormId",value:function getLearningScormScormId(scormId){// verify the required parameter 'scormId' is set
+if(scormId===undefined||scormId===null){throw'Missing the required parameter "scormId" when calling getLearningScormScormId';}return this.apiClient.callApi('/api/v2/learning/scorm/{scormId}','GET',{'scormId':scormId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update Learning Assignment
*
* @param {String} assignmentId The ID of Learning Assignment
@@ -15032,6 +15086,15 @@ if(assignmentId===undefined||assignmentId===null){throw'Missing the required par
* @param {Object} opts.body The Learning assignment reschedule model
*/},{key:"patchLearningAssignmentReschedule",value:function patchLearningAssignmentReschedule(assignmentId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentReschedule';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/reschedule','PATCH',{'assignmentId':assignmentId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update Learning Assignment Step
+ * Permission not required if you are the assigned user of the learning assignment
+ * @param {String} assignmentId The ID of Learning Assignment
+ * @param {String} stepId The ID of Learning Assignment Step
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The Learning Assignment Step to be updated
+ */},{key:"patchLearningAssignmentStep",value:function patchLearningAssignmentStep(assignmentId,stepId,opts){opts=opts||{};// verify the required parameter 'assignmentId' is set
+if(assignmentId===undefined||assignmentId===null){throw'Missing the required parameter "assignmentId" when calling patchLearningAssignmentStep';}// verify the required parameter 'stepId' is set
+if(stepId===undefined||stepId===null){throw'Missing the required parameter "stepId" when calling patchLearningAssignmentStep';}return this.apiClient.callApi('/api/v2/learning/assignments/{assignmentId}/steps/{stepId}','PATCH',{'assignmentId':assignmentId,'stepId':stepId},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update an external assignment for a specific user
*
* @param {String} moduleId Key identifier for the module
@@ -15109,6 +15172,11 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body The slot search request
*/},{key:"postLearningScheduleslotsQuery",value:function postLearningScheduleslotsQuery(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postLearningScheduleslotsQuery';}return this.apiClient.callApi('/api/v2/learning/scheduleslots/query','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Create a SCORM package upload request
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Object} opts.body The SCORM package to be uploaded
+ */},{key:"postLearningScorm",value:function postLearningScorm(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/learning/scorm','POST',{},{},{},{},opts['body'],['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update a learning module
* This will update the name, description, completion time in days and inform steps for a learning module
* @param {String} moduleId The ID of the learning module
@@ -15116,6 +15184,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*/},{key:"putLearningModule",value:function putLearningModule(moduleId,body){// verify the required parameter 'moduleId' is set
if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModule';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModule';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update a learning module preview
+ * This will update a learning module preview
+ * @param {String} moduleId The ID of the learning module
+ * @param {Object} body The learning module to be updated
+ */},{key:"putLearningModulePreview",value:function putLearningModulePreview(moduleId,body){// verify the required parameter 'moduleId' is set
+if(moduleId===undefined||moduleId===null){throw'Missing the required parameter "moduleId" when calling putLearningModulePreview';}// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putLearningModulePreview';}return this.apiClient.callApi('/api/v2/learning/modules/{moduleId}/preview','PUT',{'moduleId':moduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update a learning module rule
* This will update a learning module rule with the specified fields.
* @param {String} moduleId The ID of the learning module
@@ -15125,7 +15200,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LicenseApi.
* @alias module:purecloud-platform-client-v2/api/LicenseApi
@@ -15179,7 +15254,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LocationsApi.
* @alias module:purecloud-platform-client-v2/api/LocationsApi
@@ -15238,7 +15313,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new LogCaptureApi.
* @alias module:purecloud-platform-client-v2/api/LogCaptureApi
@@ -15288,7 +15363,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new MessagingApi.
* @alias module:purecloud-platform-client-v2/api/MessagingApi
@@ -15378,7 +15453,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new MobileDevicesApi.
* @alias module:purecloud-platform-client-v2/api/MobileDevicesApi
@@ -15417,7 +15492,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new NotificationsApi.
* @alias module:purecloud-platform-client-v2/api/NotificationsApi
@@ -15474,7 +15549,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OAuthApi.
* @alias module:purecloud-platform-client-v2/api/OAuthApi
@@ -15559,7 +15634,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ObjectsApi.
* @alias module:purecloud-platform-client-v2/api/ObjectsApi
@@ -15630,7 +15705,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OperationalEventsApi.
* @alias module:purecloud-platform-client-v2/api/OperationalEventsApi
@@ -15648,7 +15723,7 @@ if(eventDefinitionId===undefined||eventDefinitionId===null){throw'Missing the re
*/},{key:"getUsageEventsDefinitions",value:function getUsageEventsDefinitions(){return this.apiClient.callApi('/api/v2/usage/events/definitions','GET',{},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var OrganizationApi=/*#__PURE__*/function(){/**
* Organization service.
* @module purecloud-platform-client-v2/api/OrganizationApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OrganizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationApi
@@ -15753,7 +15828,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OrganizationAuthorizationApi.
* @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi
@@ -16076,7 +16151,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new OutboundApi.
* @alias module:purecloud-platform-client-v2/api/OutboundApi
@@ -17148,7 +17223,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new PresenceApi.
* @alias module:purecloud-platform-client-v2/api/PresenceApi
@@ -17321,7 +17396,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ProcessAutomationApi.
* @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi
@@ -17384,7 +17459,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new QualityApi.
* @alias module:purecloud-platform-client-v2/api/QualityApi
@@ -17855,7 +17930,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new RecordingApi.
* @alias module:purecloud-platform-client-v2/api/RecordingApi
@@ -18266,7 +18341,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ResponseManagementApi.
* @alias module:purecloud-platform-client-v2/api/ResponseManagementApi
@@ -18387,7 +18462,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new RoutingApi.
* @alias module:purecloud-platform-client-v2/api/RoutingApi
@@ -18492,7 +18567,6 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* @param {String} labelId Utilization Label ID
* @param {Object} opts Optional parameters
* @param {Boolean} opts.forceDelete Remove all label usages (if found) without warning (default to false)
- * deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"deleteRoutingUtilizationLabel",value:function deleteRoutingUtilizationLabel(labelId,opts){opts=opts||{};// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling deleteRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','DELETE',{'labelId':labelId},{'forceDelete':opts['forceDelete']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete an utilization tag
@@ -18882,13 +18956,11 @@ if(userId===undefined||userId===null){throw'Missing the required parameter "user
* Get details about this utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabel",value:function getRoutingUtilizationLabel(labelId){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','GET',{'labelId':labelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of agent ids associated with a utilization label
*
* @param {String} labelId Utilization Label ID
- * getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabelAgents",value:function getRoutingUtilizationLabelAgents(labelId){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling getRoutingUtilizationLabelAgents';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}/agents','GET',{'labelId':labelId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get list of utilization labels
@@ -18898,7 +18970,6 @@ if(labelId===undefined||labelId===null){throw'Missing the required parameter "la
* @param {Number} opts.pageNumber Page number (default to 1)
* @param {Object} opts.sortOrder Sort order by name (default to ascending)
* @param {String} opts.name Utilization label's name (Wildcard is supported, e.g., 'label1*', '*label*'
- * getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"getRoutingUtilizationLabels",value:function getRoutingUtilizationLabels(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/routing/utilization/labels','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'sortOrder':opts['sortOrder'],'name':opts['name']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get details about this utilization tag
*
@@ -19243,7 +19314,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* Create a utilization label
*
* @param {Object} body UtilizationLabel
- * postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"postRoutingUtilizationLabels",value:function postRoutingUtilizationLabels(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postRoutingUtilizationLabels';}return this.apiClient.callApi('/api/v2/routing/utilization/labels','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create an utilization tag
@@ -19332,7 +19402,6 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
*
* @param {String} labelId Utilization Label ID
* @param {Object} body UtilizationLabel
- * putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
*/},{key:"putRoutingUtilizationLabel",value:function putRoutingUtilizationLabel(labelId,body){// verify the required parameter 'labelId' is set
if(labelId===undefined||labelId===null){throw'Missing the required parameter "labelId" when calling putRoutingUtilizationLabel';}// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putRoutingUtilizationLabel';}return this.apiClient.callApi('/api/v2/routing/utilization/labels/{labelId}','PUT',{'labelId':labelId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
@@ -19361,7 +19430,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SCIMApi.
* @alias module:purecloud-platform-client-v2/api/SCIMApi
@@ -19586,7 +19655,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ScreenRecordingApi.
* @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi
@@ -19601,7 +19670,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new ScriptsApi.
* @alias module:purecloud-platform-client-v2/api/ScriptsApi
@@ -19737,7 +19806,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SearchApi.
* @alias module:purecloud-platform-client-v2/api/SearchApi
@@ -19897,7 +19966,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SettingsApi.
* @alias module:purecloud-platform-client-v2/api/SettingsApi
@@ -19925,7 +19994,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 patchSettingsExecutiondata';}return this.apiClient.callApi('/api/v2/settings/executiondata','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var SpeechTextAnalyticsApi=/*#__PURE__*/function(){/**
* SpeechTextAnalytics service.
* @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
- * @version 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SpeechTextAnalyticsApi.
* @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi
@@ -19933,10 +20002,15 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
*/function SpeechTextAnalyticsApi(apiClient){_classCallCheck(this,SpeechTextAnalyticsApi);this.apiClient=apiClient||ApiClient.instance;}/**
+ * Delete a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsCategory",value:function deleteSpeechandtextanalyticsCategory(categoryId){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling deleteSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','DELETE',{'categoryId':categoryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete a Speech and Text Analytics DictionaryFeedback by Id
*
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
- */return _createClass(SpeechTextAnalyticsApi,[{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
+ */},{key:"deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId",value:function deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId){// verify the required parameter 'dictionaryFeedbackId' is set
if(dictionaryFeedbackId===undefined||dictionaryFeedbackId===null){throw'Missing the required parameter "dictionaryFeedbackId" when calling deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId}','DELETE',{'dictionaryFeedbackId':dictionaryFeedbackId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Delete a Speech and Text Analytics program by id
*
@@ -19958,11 +20032,34 @@ if(sentimentFeedbackId===undefined||sentimentFeedbackId===null){throw'Missing th
* @param {String} topicId The id of the topic
*/},{key:"deleteSpeechandtextanalyticsTopic",value:function deleteSpeechandtextanalyticsTopic(topicId){// verify the required parameter 'topicId' is set
if(topicId===undefined||topicId===null){throw'Missing the required parameter "topicId" when calling deleteSpeechandtextanalyticsTopic';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/topics/{topicId}','DELETE',{'topicId':topicId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get the list of Speech and Text Analytics categories
+ *
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ * @param {String} opts.name The category name filter applied to the listing
+ * @param {Object} opts.sortOrder The sort order for the listing (default to asc)
+ * @param {Object} opts.sortBy The field to sort by for the listing (default to name)
+ * @param {Array.} opts.ids Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
+ */},{key:"getSpeechandtextanalyticsCategories",value:function getSpeechandtextanalyticsCategories(opts){opts=opts||{};return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories','GET',{},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber'],'name':opts['name'],'sortOrder':opts['sortOrder'],'sortBy':opts['sortBy'],'ids':this.apiClient.buildCollectionParam(opts['ids'],'multi')},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get a Speech and Text Analytics Category by ID
+ *
+ * @param {String} categoryId The id of the category
+ */},{key:"getSpeechandtextanalyticsCategory",value:function getSpeechandtextanalyticsCategory(categoryId){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling getSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','GET',{'categoryId':categoryId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get Speech and Text Analytics for a specific conversation
*
* @param {String} conversationId Conversation Id
*/},{key:"getSpeechandtextanalyticsConversation",value:function getSpeechandtextanalyticsConversation(conversationId){// verify the required parameter 'conversationId' is set
if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversation';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}','GET',{'conversationId':conversationId},{},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Get the list of detected Speech and Text Analytics categories of conversation
+ *
+ * @param {String} conversationId The id of the conversation
+ * @param {Object} opts Optional parameters
+ * @param {Number} opts.pageSize The page size for the listing. The max that will be returned is 50. (default to 25)
+ * @param {Number} opts.pageNumber The page number for the listing (default to 1)
+ */},{key:"getSpeechandtextanalyticsConversationCategories",value:function getSpeechandtextanalyticsConversationCategories(conversationId,opts){opts=opts||{};// verify the required parameter 'conversationId' is set
+if(conversationId===undefined||conversationId===null){throw'Missing the required parameter "conversationId" when calling getSpeechandtextanalyticsConversationCategories';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/conversations/{conversationId}/categories','GET',{'conversationId':conversationId},{'pageSize':opts['pageSize'],'pageNumber':opts['pageNumber']},{},{},null,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Get the pre-signed S3 URL for the transcript of a specific communication of a conversation
*
* @param {String} conversationId Conversation ID
@@ -20087,6 +20184,11 @@ if(jobId===undefined||jobId===null){throw'Missing the required parameter "jobId"
* @param {Object} body Speech And Text Analytics Settings
*/},{key:"patchSpeechandtextanalyticsSettings",value:function patchSpeechandtextanalyticsSettings(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling patchSpeechandtextanalyticsSettings';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/settings','PATCH',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Create new Speech and Text Analytics category
+ *
+ * @param {Object} body The category to create
+ */},{key:"postSpeechandtextanalyticsCategories",value:function postSpeechandtextanalyticsCategories(body){// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsCategories';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Create a Speech and Text Analytics DictionaryFeedback
*
* @param {Object} body The DictionaryFeedback to create
@@ -20127,6 +20229,13 @@ if(body===undefined||body===null){throw'Missing the required parameter "body" wh
* @param {Object} body Search request options
*/},{key:"postSpeechandtextanalyticsTranscriptsSearch",value:function postSpeechandtextanalyticsTranscriptsSearch(body){// verify the required parameter 'body' is set
if(body===undefined||body===null){throw'Missing the required parameter "body" when calling postSpeechandtextanalyticsTranscriptsSearch';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/transcripts/search','POST',{},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
+ * Update a Speech and Text Analytics category by ID
+ *
+ * @param {String} categoryId The id of the category
+ * @param {Object} body The updated category
+ */},{key:"putSpeechandtextanalyticsCategory",value:function putSpeechandtextanalyticsCategory(categoryId,body){// verify the required parameter 'categoryId' is set
+if(categoryId===undefined||categoryId===null){throw'Missing the required parameter "categoryId" when calling putSpeechandtextanalyticsCategory';}// verify the required parameter 'body' is set
+if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putSpeechandtextanalyticsCategory';}return this.apiClient.callApi('/api/v2/speechandtextanalytics/categories/{categoryId}','PUT',{'categoryId':categoryId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}/**
* Update existing Speech and Text Analytics dictionary feedback by id
*
* @param {String} dictionaryFeedbackId The Id of the Dictionary Feedback
@@ -20169,7 +20278,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new StationsApi.
* @alias module:purecloud-platform-client-v2/api/StationsApi
@@ -20201,7 +20310,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new SuggestApi.
* @alias module:purecloud-platform-client-v2/api/SuggestApi
@@ -20241,7 +20350,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TaskManagementApi.
* @alias module:purecloud-platform-client-v2/api/TaskManagementApi
@@ -20570,7 +20679,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TeamsApi.
* @alias module:purecloud-platform-client-v2/api/TeamsApi
@@ -20648,7 +20757,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TelephonyApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyApi
@@ -20695,7 +20804,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TelephonyProvidersEdgeApi.
* @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi
@@ -21505,7 +21614,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TextbotsApi.
* @alias module:purecloud-platform-client-v2/api/TextbotsApi
@@ -21540,7 +21649,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new TokensApi.
* @alias module:purecloud-platform-client-v2/api/TokensApi
@@ -21574,7 +21683,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UploadsApi.
* @alias module:purecloud-platform-client-v2/api/UploadsApi
@@ -21640,7 +21749,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UsageApi.
* @alias module:purecloud-platform-client-v2/api/UsageApi
@@ -21694,7 +21803,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UserRecordingsApi.
* @alias module:purecloud-platform-client-v2/api/UserRecordingsApi
@@ -21743,7 +21852,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UsersApi.
* @alias module:purecloud-platform-client-v2/api/UsersApi
@@ -22405,7 +22514,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new UtilitiesApi.
* @alias module:purecloud-platform-client-v2/api/UtilitiesApi
@@ -22432,7 +22541,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new VoicemailApi.
* @alias module:purecloud-platform-client-v2/api/VoicemailApi
@@ -22581,7 +22690,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebChatApi.
* @alias module:purecloud-platform-client-v2/api/WebChatApi
@@ -22716,7 +22825,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebDeploymentsApi.
* @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi
@@ -22837,7 +22946,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WebMessagingApi.
* @alias module:purecloud-platform-client-v2/api/WebMessagingApi
@@ -22853,7 +22962,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WidgetsApi.
* @alias module:purecloud-platform-client-v2/api/WidgetsApi
@@ -22888,7 +22997,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 194.0.0
+ * @version 195.0.0
*/ /**
* Constructs a new WorkforceManagementApi.
* @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi
@@ -24368,7 +24477,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required
*
*
* @module purecloud-platform-client-v2/index
- * @version 194.0.0
+ * @version 195.0.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 221da90e..da122372 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(W(e,ArrayBuffer)||e&&W(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)||W(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),B(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 A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function b(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<=j)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 b(this,i,t);case"ascii":return k(this,i,t);case"latin1":case"binary":return P(this,i,t);case"base64":return A(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(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(W(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 v(this,e,i,t);case"utf8":case"utf-8":return f(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 j=4096;function k(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 q(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 S(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||S(e,0,t,4),n.write(e,i,t,a,23,4),t+4}function G(e,i,t,a,o){return i=+i,t>>>=0,o||S(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||T(e,i,this.length);for(var n=this[e],a=1,o=0;++o>>=0,i>>>=0,t||T(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||T(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,i){return e>>>=0,i||T(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,i){return e>>>=0,i||T(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,i){return e>>>=0,i||T(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||T(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||T(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||T(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||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,i){e>>>=0,i||T(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||T(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||T(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||T(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||T(e,4,this.length),n.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,i){return e>>>=0,i||T(e,4,this.length),n.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,i){return e>>>=0,i||T(e,8,this.length),n.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,i){return e>>>=0,i||T(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)||q(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)||q(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||q(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||q(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||q(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||q(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||q(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);q(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);q(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||q(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||q(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||q(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||q(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||q(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 G(this,e,i,!0,t)},r.prototype.writeDoubleBE=function(e,i,t){return G(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 z(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function W(e,i){return e instanceof i||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===i.name}function B(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:4}],4:[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}},{}],5:[function(e,i,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},{}],6:[function(e,i,t){(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,i){for(var t,n="",a=0,o=-1,r=0,l=0;l<=e.length;++l){if(l2){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:7}],7:[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-1?a(t):t}},{"./":9,"get-intrinsic":21}],9:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("get-intrinsic"),o=e("set-function-length"),r=e("es-errors/type"),l=a("%Function.prototype.apply%"),s=a("%Function.prototype.call%"),u=a("%Reflect.apply%",!0)||n.call(s,l),p=e("es-define-property"),c=a("%Math.max%");i.exports=function(e){if("function"!=typeof e)throw new r("a function is required");var i=u(n,s,arguments);return o(i,1+c(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(n,l,arguments)};p?p(i.exports,"apply",{value:d}):i.exports.apply=d},{"es-define-property":11,"es-errors/type":17,"function-bind":20,"get-intrinsic":21,"set-function-length":34}],10:[function(e,i,t){"use strict";var n=e("es-define-property"),a=e("es-errors/syntax"),o=e("es-errors/type"),r=e("gopd");i.exports=function(e,i,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof i&&"symbol"!=typeof i)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],c=!!r&&r(e,i);if(n)n(e,i,{configurable:null===u&&c?c.configurable:!u,enumerable:null===l&&c?c.enumerable:!l,value:t,writable:null===s&&c?c.writable:!s});else{if(!p&&(l||s||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[i]=t}}},{"es-define-property":11,"es-errors/syntax":16,"es-errors/type":17,gopd:22}],11:[function(e,i,t){"use strict";var n=e("get-intrinsic")("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}i.exports=n},{"get-intrinsic":21}],12:[function(e,i,t){"use strict";i.exports=EvalError},{}],13:[function(e,i,t){"use strict";i.exports=Error},{}],14:[function(e,i,t){"use strict";i.exports=RangeError},{}],15:[function(e,i,t){"use strict";i.exports=ReferenceError},{}],16:[function(e,i,t){"use strict";i.exports=SyntaxError},{}],17:[function(e,i,t){"use strict";i.exports=TypeError},{}],18:[function(e,i,t){"use strict";i.exports=URIError},{}],19:[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 s('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var i=M(e,0,1),t=M(e,-1);if("%"===i&&"%"!==t)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==i)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,q,function(e,i,t,a){n[n.length]=t?O(a,S,"$1"):i||e}),n}(e),n=t.length>0?t[0]:"",a=E("%"+n+"%",i),o=a.name,r=a.value,u=!1,p=a.alias;p&&(n=p[0],P(t,k([0,1],p)));for(var c=1,g=!0;c=t.length){var f=d(r,h);r=(g=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[h]}else g=j(r,h),r=r[h];g&&!u&&(C[o]=r)}}return r}},{"es-errors":13,"es-errors/eval":12,"es-errors/range":14,"es-errors/ref":15,"es-errors/syntax":16,"es-errors/type":17,"es-errors/uri":18,"function-bind":20,"has-proto":24,"has-symbols":25,hasown:27}],22:[function(e,i,t){"use strict";var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}i.exports=n},{"get-intrinsic":21}],23:[function(e,i,t){"use strict";var n=e("es-define-property"),a=function(){return!!n};a.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},i.exports=a},{"es-define-property":11}],24:[function(e,i,t){"use strict";var n={__proto__:null,foo:{}},a=Object;i.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof a)}},{}],25:[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":26}],26:[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(i 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==i)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,i);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},{}],27:[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":20}],28:[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,v=Function.prototype.toString,f=String.prototype.match,w=String.prototype.slice,y=String.prototype.replace,C=String.prototype.toUpperCase,I=String.prototype.toLowerCase,A=RegExp.prototype.test,b=Array.prototype.concat,j=Array.prototype.join,k=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,q="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===q||"symbol")?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,G=("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||A.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 R=e("./util.inspect"),x=R.custom,D=N(x)?x:null;function z(e,i,t){var n="double"===(t.quoteStyle||i)?'"':"'";return n+e+n}function W(e){return y.call(String(e),/"/g,""")}function B(e){return!("[object Array]"!==J(e)||S&&"object"==typeof e&&S in e)}function L(e){return!("[object RegExp]"!==J(e)||S&&"object"==typeof e&&S in e)}function N(e){if(q)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}i.exports=function e(i,n,a,l){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(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=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(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(F(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=y.call(y.call(i,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_);return z(o,"single",t)}(i,s);if("number"==typeof i){if(0===i)return 1/0/i>0?"0":"-0";var A=String(i);return C?U(i,A):A}if("bigint"==typeof i){var P=String(i)+"n";return C?U(i,P):P}var M=void 0===s.depth?5:s.depth;if(void 0===a&&(a=0),a>=M&&M>0&&"object"==typeof i)return B(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=j.call(Array(e.indent+1)," ")}return{base:t,prev:j.call(Array(i+1),t)}}(s,a);if(void 0===l)l=[];else if(V(l,i)>=0)return"[Circular]";function K(i,t,n){if(t&&(l=k.call(l)).push(t),n){var o={depth:s.depth};return F(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(i,o,a+1,l)}return e(i,s,a+1,l)}if("function"==typeof i&&!L(i)){var X=function(e){if(e.name)return e.name;var i=f.call(v.call(e),/^function\s*([\w$]+)/);if(i)return i[1];return null}(i),ee=Z(i,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ee.length>0?" { "+j.call(ee,", ")+" }":"")}if(N(i)){var ie=q?y.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(i);return"object"!=typeof i||q?ie:Q(ie)}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 te="<"+I.call(String(i.nodeName)),ne=i.attributes||[],ae=0;ae",i.childNodes&&i.childNodes.length&&(te+="..."),te+=""+I.call(String(i.nodeName))+">"}if(B(i)){if(0===i.length)return"[]";var oe=Z(i,K);return x&&!function(e){for(var i=0;i=0)return!1;return!0}(oe)?"["+$(oe,x)+"]":"[ "+j.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==J(e)||S&&"object"==typeof e&&S in e)}(i)){var re=Z(i,K);return"cause"in Error.prototype||!("cause"in i)||E.call(i,"cause")?0===re.length?"["+String(i)+"]":"{ ["+String(i)+"] "+j.call(re,", ")+" }":"{ ["+String(i)+"] "+j.call(b.call("[cause]: "+K(i.cause),re),", ")+" }"}if("object"==typeof i&&m){if(D&&"function"==typeof i[D]&&R)return R(i,{depth:M-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 le=[];return r&&r.call(i,function(e,t){le.push(K(t,i,!0)+" => "+K(e,i))}),Y("Map",o.call(i),le,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 se=[];return p&&p.call(i,function(e){se.push(K(e,i))}),Y("Set",u.call(i),se,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 H("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 H("WeakSet");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{return g.call(e),!0}catch(e){}return!1}(i))return H("WeakRef");if(function(e){return!("[object Number]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(K(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 Q(K(O.call(i)));if(function(e){return!("[object Boolean]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(h.call(i));if(function(e){return!("[object String]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(K(String(i)));if("undefined"!=typeof window&&i===window)return"{ [object Window] }";if(i===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==J(e)||S&&"object"==typeof e&&S in e)}(i)&&!L(i)){var ue=Z(i,K),pe=G?G(i)===Object.prototype:i instanceof Object||i.constructor===Object,ce=i instanceof Object?"":"null prototype",de=!pe&&S&&Object(i)===i&&S in i?w.call(J(i),8,-1):ce?"Object":"",ge=(pe||"function"!=typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"")+(de||ce?"["+j.call(b.call([],de||[],ce||[]),": ")+"] ":"");return 0===ue.length?ge+"{}":x?ge+"{"+$(ue,x)+"}":ge+"{ "+j.call(ue,", ")+" }"}return String(i)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,i){return K.call(e,i)}function J(e){return m.call(e)}function V(e,i){if(e.indexOf)return e.indexOf(i);for(var t=0,n=e.length;t-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?[]:[].concat(a);else{r=t.plainObjects?Object.create(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,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(i);if(""===e||null===e||void 0===e)return t.plainObjects?Object.create(null):{};for(var p="string"==typeof e?function(e,i){var t,u={__proto__:null},p=i.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=i.parameterLimit===1/0?void 0:i.parameterLimit,d=p.split(i.delimiter,c),g=-1,h=i.charset;if(i.charsetSentinel)for(t=0;t-1&&(v=o(v)?[v]:v);var C=a.call(u,m);C&&"combine"===i.duplicates?u[m]=n.combine(u[m],v):C&&"last"!==i.duplicates||(u[m]=v)}return u}(e,t):e,c=t.plainObjects?Object.create(null):{},d=Object.keys(p),g=0;g0?P.join(",")||null:void 0}];else if(s(v))S=v;else{var G=Object.keys(P);S=f?G.sort(f):G}var U=d?t.replace(/\./g,"%2E"):t,R=r&&s(P)&&1===P.length?U+"[]":U;if(l&&s(P)&&0===P.length)return R+"[]";for(var x=0;x0?C+y:""}},{"./formats":29,"./utils":33,"side-channel":35}],33:[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?Object.create(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;n4294967295||s(i)!==i)throw new l("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&r){var p=r(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(u=!1)}return(n||u||!t)&&(o?a(e,"length",i,!0,!0):a(e,"length",i)),e}},{"define-data-property":10,"es-errors/type":17,"get-intrinsic":21,gopd:22,"has-property-descriptors":23}],35:[function(e,i,t){"use strict";var n=e("get-intrinsic"),a=e("call-bind/callBound"),o=e("object-inspect"),r=e("es-errors/type"),l=n("%WeakMap%",!0),s=n("%Map%",!0),u=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),d=a("Map.prototype.get",!0),g=a("Map.prototype.set",!0),h=a("Map.prototype.has",!0),m=function(e,i){for(var t,n=e;null!==(t=n.next);n=t)if(t.key===i)return n.next=t.next,t.next=e.next,e.next=t,t};i.exports=function(){var e,i,t,n={assert:function(e){if(!n.has(e))throw new r("Side channel does not contain "+o(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(s){if(i)return d(i,n)}else if(t)return function(e,i){var t=m(e,i);return t&&t.value}(t,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(s){if(i)return h(i,n)}else if(t)return function(e,i){return!!m(e,i)}(t,n);return!1},set:function(n,a){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,a)):s?(i||(i=new s),g(i,n,a)):(t||(t={key:{},next:null}),function(e,i,t){var n=m(e,i);n?n.value=t:e.next={key:i,next:e.next,value:t}}(t,n,a))}};return n}},{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],platformClient:[function(e,i,t){(function(t,n){(function(){"use strict";function n(e,i,t,n,a,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?i(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var i=this,t=arguments;return new Promise(function(a,o){var r=e.apply(i,t);function l(e){n(r,a,o,l,s,"next",e)}function s(e){n(r,a,o,l,s,"throw",e)}l(void 0)})}}function o(){o=function(){return i};var e,i={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,i,t){e[i]=t.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function p(e,i,t){return Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[i]}try{p({},"")}catch(e){p=function(e,i,t){return e[i]=t}}function c(e,i,t,n){var o=i&&i.prototype instanceof w?i:w,r=Object.create(o.prototype),l=new E(n||[]);return a(r,"_invoke",{value:M(e,t,l)}),r}function d(e,i,t){try{return{type:"normal",arg:e.call(i,t)}}catch(e){return{type:"throw",arg:e}}}i.wrap=c;var g="suspendedStart",h="suspendedYield",m="executing",v="completed",f={};function w(){}function y(){}function I(){}var A={};p(A,l,function(){return this});var b=Object.getPrototypeOf,j=b&&b(b(G([])));j&&j!==t&&n.call(j,l)&&(A=j);var k=I.prototype=w.prototype=Object.create(A);function P(e){["next","throw","return"].forEach(function(i){p(e,i,function(e){return this._invoke(i,e)})})}function O(e,i){function t(a,o,r,l){var s=d(e[a],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==C(p)&&n.call(p,"__await")?i.resolve(p.__await).then(function(e){t("next",e,r,l)},function(e){t("throw",e,r,l)}):i.resolve(p).then(function(e){u.value=e,r(u)},function(e){return t("throw",e,r,l)})}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new i(function(i,a){t(e,n,i,a)})}return o=o?o.then(a,a):a()}})}function M(i,t,n){var a=g;return function(o,r){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===o)throw r;return{value:e,done:!0}}for(n.method=o,n.arg=r;;){var l=n.delegate;if(l){var s=T(l,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===g)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var u=d(i,t,n);if("normal"===u.type){if(a=n.done?v:h,u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function T(i,t){var n=t.method,a=i.iterator[n];if(a===e)return t.delegate=null,"throw"===n&&i.iterator.return&&(t.method="return",t.arg=e,T(i,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(a,i.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var r=o.arg;return r?r.done?(t[i.resultName]=r.value,t.next=i.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function q(e){var i={tryLoc:e[0]};1 in e&&(i.catchLoc=e[1]),2 in e&&(i.finallyLoc=e[2],i.afterLoc=e[3]),this.tryEntries.push(i)}function S(e){var i=e.completion||{};i.type="normal",delete i.arg,e.completion=i}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function G(i){if(i||""===i){var t=i[l];if(t)return t.call(i);if("function"==typeof i.next)return i;if(!isNaN(i.length)){var a=-1,o=function t(){for(;++a=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),S(t),f}},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;S(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(i,t,n){return this.delegate={iterator:G(i),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),f}},i}function r(e){return function(e){if(Array.isArray(e))return w(e)}(e)||l(e)||f(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 l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(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 u(e){for(var i=1;ie.length)&&(i=e.length);for(var t=0,n=Array(i);t>18&63]+q[a>>12&63]+q[a>>6&63]+q[63&a]);return o.join("")}function x(e){var i;G||U();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+=q[i>>2],a+=q[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=q[i>>10],a+=q[i>>4&63],a+=q[i<<2&63],a+="="),o.push(a),o.join("")}function D(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 z(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 W={}.toString,B=Array.isArray||function(e){return"[object Array]"==W.call(e)};function L(){return K.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function N(e,i){if(L()=L())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L().toString(16)+" bytes");return 0|e}function H(e){return!(null==e||!e._isBuffer)}function Y(e,i){if(H(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 Ae(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return be(e).length;default:if(n)return Ae(e).length;i=(""+i).toLowerCase(),n=!0}}function $(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function Z(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=K.from(i,n)),H(i))return 0===i.length?-1:X(e,i,t,n,a);if("number"==typeof i)return i&=255,K.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):X(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function X(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 re(e,i,t){return 0===i&&t===e.length?x(e):x(e.slice(i,t))}function le(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<=se)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 le(this,i,t);case"ascii":return ue(this,i,t);case"latin1":case"binary":return pe(this,i,t);case"base64":return re(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},K.prototype.equals=function(e){if(!H(e))throw new TypeError("Argument must be a Buffer");return this===e||0===K.compare(this,e)},K.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},K.prototype.compare=function(e,i,t,n,a){if(!H(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 ee(this,e,i,t);case"utf8":case"utf-8":return ie(this,e,i,t);case"ascii":return te(this,e,i,t);case"latin1":case"binary":return ne(this,e,i,t);case"base64":return ae(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},K.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var se=4096;function ue(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 he(e,i,t,n,a,o){if(!H(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function me(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 ve(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 fe(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 we(e,i,t,n,a){return a||fe(e,0,t,4),z(e,i,t,n,23,4),t+4}function ye(e,i,t,n,a){return a||fe(e,0,t,8),z(e,i,t,n,52,8),t+8}K.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},K.prototype.readUInt8=function(e,i){return i||ge(e,1,this.length),this[e]},K.prototype.readUInt16LE=function(e,i){return i||ge(e,2,this.length),this[e]|this[e+1]<<8},K.prototype.readUInt16BE=function(e,i){return i||ge(e,2,this.length),this[e]<<8|this[e+1]},K.prototype.readUInt32LE=function(e,i){return i||ge(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},K.prototype.readUInt32BE=function(e,i){return i||ge(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},K.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||ge(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},K.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||ge(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},K.prototype.readInt8=function(e,i){return i||ge(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},K.prototype.readInt16LE=function(e,i){i||ge(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},K.prototype.readInt16BE=function(e,i){i||ge(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},K.prototype.readInt32LE=function(e,i){return i||ge(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},K.prototype.readInt32BE=function(e,i){return i||ge(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},K.prototype.readFloatLE=function(e,i){return i||ge(e,4,this.length),D(this,e,!0,23,4)},K.prototype.readFloatBE=function(e,i){return i||ge(e,4,this.length),D(this,e,!1,23,4)},K.prototype.readDoubleLE=function(e,i){return i||ge(e,8,this.length),D(this,e,!0,52,8)},K.prototype.readDoubleBE=function(e,i){return i||ge(e,8,this.length),D(this,e,!1,52,8)},K.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||he(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},K.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,1,255,0),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},K.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):me(this,e,i,!0),i+2},K.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):me(this,e,i,!1),i+2},K.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):ve(this,e,i,!0),i+4},K.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ve(this,e,i,!1),i+4},K.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);he(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},K.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);he(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},K.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,1,127,-128),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},K.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):me(this,e,i,!0),i+2},K.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):me(this,e,i,!1),i+2},K.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,2147483647,-2147483648),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):ve(this,e,i,!0),i+4},K.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ve(this,e,i,!1),i+4},K.prototype.writeFloatLE=function(e,i,t){return we(this,e,i,!0,t)},K.prototype.writeFloatBE=function(e,i,t){return we(this,e,i,!1,t)},K.prototype.writeDoubleLE=function(e,i,t){return ye(this,e,i,!0,t)},K.prototype.writeDoubleBE=function(e,i,t){return ye(this,e,i,!1,t)},K.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||!K.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 be(e){return function(e){var i,t,n,a,o,r;G||U();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 E(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=S[e.charCodeAt(i)]<<2|S[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=S[e.charCodeAt(i)]<<10|S[e.charCodeAt(i+1)]<<4|S[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(Ce,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function je(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function ke(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Pe(e,i){return function(){return e.apply(i,arguments)}}var Oe,Me=Object.prototype.toString,Te=Object.getPrototypeOf,qe=(Oe=Object.create(null),function(e){var i=Me.call(e);return Oe[i]||(Oe[i]=i.slice(8,-1).toLowerCase())}),Se=function(e){return e=e.toLowerCase(),function(i){return qe(i)===e}},Ee=function(e){return function(i){return C(i)===e}},Ge=Array.isArray,Ue=Ee("undefined");var Re=Se("ArrayBuffer");var xe=Ee("string"),De=Ee("function"),ze=Ee("number"),We=function(e){return null!==e&&"object"===C(e)},Be=function(e){if("object"!==qe(e))return!1;var i=Te(e);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in e||Symbol.iterator in e)},Le=Se("Date"),Ne=Se("File"),Ke=Se("Blob"),Fe=Se("FileList"),Je=Se("URLSearchParams"),Ve=m(["ReadableStream","Request","Response","Headers"].map(Se),4),_e=Ve[0],Qe=Ve[1],He=Ve[2],Ye=Ve[3];function $e(e,i){var t,n,a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==a&&a;if(null!==e&&void 0!==e)if("object"!==C(e)&&(e=[e]),Ge(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:T,ei=function(e){return!Ue(e)&&e!==Xe};var ii,ti=(ii="undefined"!=typeof Uint8Array&&Te(Uint8Array),function(e){return ii&&e instanceof ii}),ni=Se("HTMLFormElement"),ai=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),oi=Se("RegExp"),ri=function(e,i){var t={};$e(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},li="abcdefghijklmnopqrstuvwxyz",si={DIGIT:"0123456789",ALPHA:li,ALPHA_DIGIT:li+li.toUpperCase()+"0123456789"};var ui=Se("AsyncFunction"),pi={isArray:Ge,isArrayBuffer:Re,isBuffer:function(e){return null!==e&&!Ue(e)&&null!==e.constructor&&!Ue(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||De(e.append)&&("formdata"===(i=qe(e))||"object"===i&&De(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Re(e.buffer)},isString:xe,isNumber:ze,isBoolean:function(e){return!0===e||!1===e},isObject:We,isPlainObject:Be,isReadableStream:_e,isRequest:Qe,isResponse:He,isHeaders:Ye,isUndefined:Ue,isDate:Le,isFile:Ne,isBlob:Ke,isRegExp:oi,isFunction:De,isStream:function(e){return We(e)&&De(e.pipe)},isURLSearchParams:Je,isTypedArray:ti,isFileList:Fe,forEach:$e,merge:function e(){for(var i=(ei(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&Ze(t,a)||a;Be(t[o])&&Be(n)?t[o]=e(t[o],n):Be(n)?t[o]=e({},n):Ge(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&&Te(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:qe,kindOfTest:Se,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(Ge(e))return e;var i=e.length;if(!ze(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:ni,hasOwnProperty:ai,hasOwnProp:ai,reduceDescriptors:ri,freezeMethods:function(e){ri(e,function(i,t){if(De(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];De(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 Ge(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:Ze,global:Xe,isContextDefined:ei,ALPHABET:si,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]:si.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&De(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10);return function e(t,n){if(We(t)){if(i.indexOf(t)>=0)return;if(!("toJSON"in t)){i[n]=t;var a=Ge(t)?[]:{};return $e(t,function(i,t){var o=e(i,n+1);!Ue(o)&&(a[t]=o)}),i[n]=void 0,a}}return t}(e,0)},isAsyncFn:ui,isThenable:function(e){return e&&(We(e)||De(e))&&De(e.then)&&De(e.catch)}};function ci(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)}pi.inherits(ci,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:pi.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var di=ci.prototype,gi={};["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){gi[e]={value:e}}),Object.defineProperties(ci,gi),Object.defineProperty(di,"isAxiosError",{value:!0}),ci.from=function(e,i,t,n,a,o){var r=Object.create(di);return pi.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),ci.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function hi(e){return pi.isPlainObject(e)||pi.isArray(e)}function mi(e){return pi.endsWith(e,"[]")?e.slice(0,-2):e}function vi(e,i,t){return e?e.concat(i).map(function(e,i){return e=mi(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var fi=pi.toFlatObject(pi,{},null,function(e){return/^is[A-Z]/.test(e)});function wi(e,i,t){if(!pi.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=pi.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!pi.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&pi.isSpecCompliantForm(i);if(!pi.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(pi.isDate(e))return e.toISOString();if(!l&&pi.isBlob(e))throw new ci("Blob is not supported. Use a Buffer instead.");return pi.isArrayBuffer(e)||pi.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):K.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===C(e))if(pi.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(pi.isArray(e)&&function(e){return pi.isArray(e)&&!e.some(hi)}(e)||(pi.isFileList(e)||pi.endsWith(t,"[]"))&&(l=pi.toArray(e)))return t=mi(t),l.forEach(function(e,n){!pi.isUndefined(e)&&null!==e&&i.append(!0===r?vi([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!hi(e)||(i.append(vi(a,t,o),s(e)),!1)}var p=[],c=Object.assign(fi,{defaultVisitor:u,convertValue:s,isVisitable:hi});if(!pi.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!pi.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),pi.forEach(t,function(t,o){!0===(!(pi.isUndefined(t)||null===t)&&a.call(i,t,pi.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function yi(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function Ci(e,i){this._pairs=[],e&&wi(e,this,i)}var Ii=Ci.prototype;function Ai(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bi(e,i,t){if(!i)return e;var n,a=t&&t.encode||Ai,o=t&&t.serialize;if(n=o?o(i,t):pi.isURLSearchParams(i)?i.toString():new Ci(i,t).toString(a)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}Ii.append=function(e,i){this._pairs.push([e,i])},Ii.toString=function(e){var i=e?function(i){return e.call(this,i,yi)}:yi;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var ji,ki=function(){return g(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){pi.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),Pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ci,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Mi="undefined"!=typeof window&&"undefined"!=typeof document,Ti=(ji="undefined"!=typeof navigator&&navigator.product,Mi&&["ReactNative","NativeScript","NS"].indexOf(ji)<0),qi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Si=Mi&&window.location.href||"http://localhost",Ei=u(u({},Object.freeze({__proto__:null,hasBrowserEnv:Mi,hasStandardBrowserWebWorkerEnv:qi,hasStandardBrowserEnv:Ti,origin:Si})),Oi);function Gi(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&&pi.isArray(n)?n.length:o,l?(pi.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&pi.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&pi.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=pi.isObject(e);if(o&&pi.isHTMLForm(e)&&(e=new FormData(e)),pi.isFormData(e))return a?JSON.stringify(Gi(e)):e;if(pi.isArrayBuffer(e)||pi.isBuffer(e)||pi.isStream(e)||pi.isFile(e)||pi.isBlob(e)||pi.isReadableStream(e))return e;if(pi.isArrayBufferView(e))return e.buffer;if(pi.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 wi(e,new Ei.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return Ei.isNode&&pi.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=pi.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return wi(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(pi.isString(e))try{return(i||JSON.parse)(e),pi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||Ui.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(pi.isResponse(e)||pi.isReadableStream(e))return e;if(e&&pi.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 ci.from(e,ci.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:Ei.classes.FormData,Blob:Ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pi.forEach(["delete","get","head","post","put","patch"],function(e){Ui.headers[e]={}});var Ri=Ui,xi=pi.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"]),Di=Symbol("internals");function zi(e){return e&&String(e).trim().toLowerCase()}function Wi(e){return!1===e||null==e?e:pi.isArray(e)?e.map(Wi):String(e)}function Bi(e,i,t,n,a){return pi.isFunction(n)?n.call(this,i,t):(a&&(i=t),pi.isString(i)?pi.isString(n)?-1!==i.indexOf(n):pi.isRegExp(n)?n.test(i):void 0:void 0)}var Li=function(){return g(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=zi(i);if(!a)throw new Error("header name must be a non-empty string");var o=pi.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Wi(e))}var o=function(e,i){return pi.forEach(e,function(e,t){return a(e,t,i)})};if(pi.isPlainObject(e)||e instanceof this.constructor)o(e,i);else if(pi.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]&&xi[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(pi.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=f(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=zi(e)){var t=pi.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(pi.isFunction(i))return i.call(this,n,t);if(pi.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=zi(e)){var t=pi.findKey(this,e);return!(!t||void 0===this[t]||i&&!Bi(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=zi(e)){var a=pi.findKey(t,e);!a||i&&!Bi(0,t[a],a,i)||(delete t[a],n=!0)}}return pi.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&&!Bi(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return pi.forEach(this,function(n,a){var o=pi.findKey(t,a);if(o)return i[o]=Wi(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]=Wi(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-tn)return a&&(clearTimeout(a),a=null),t=r,e.apply(null,arguments);a||(a=setTimeout(function(){return a=null,t=Date.now(),e.apply(null,i)},n-(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={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};u[i?"download":"upload"]=!0,e(u)},t)},Qi=Ei.hasStandardBrowserEnv?function(){var e,i=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function n(e){var n=e;return i&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=n(window.location.href),function(i){var t=pi.isString(i)?n(i):i;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0},Hi=Ei.hasStandardBrowserEnv?{write:function(e,i,t,n,a,o){var r=[e+"="+encodeURIComponent(i)];pi.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),pi.isString(n)&&r.push("path="+n),pi.isString(a)&&r.push("domain="+a),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var i=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Yi(e,i){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)?function(e,i){return i?e.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):e}(e,i):i}var $i=function(e){return e instanceof Ni?u({},e):e};function Zi(e,i){i=i||{};var t={};function n(e,i,t){return pi.isPlainObject(e)&&pi.isPlainObject(i)?pi.merge.call({caseless:t},e,i):pi.isPlainObject(i)?pi.merge({},i):pi.isArray(i)?i.slice():i}function a(e,i,t){return pi.isUndefined(i)?pi.isUndefined(e)?void 0:n(void 0,e,t):n(e,i,t)}function o(e,i){if(!pi.isUndefined(i))return n(void 0,i)}function r(e,i){return pi.isUndefined(i)?pi.isUndefined(e)?void 0:n(void 0,e):n(void 0,i)}function l(t,a,o){return o in i?n(t,a):o in e?n(void 0,t):void 0}var s={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:function(e,i){return a($i(e),$i(i),!0)}};return pi.forEach(Object.keys(Object.assign({},e,i)),function(n){var o=s[n]||a,r=o(e[n],i[n],n);pi.isUndefined(r)&&o!==l||(t[n]=r)}),t}var Xi,et,it,tt,nt=function(e){var i,t,n=Zi({},e),a=n.data,o=n.withXSRFToken,s=n.xsrfHeaderName,u=n.xsrfCookieName,p=n.headers,c=n.auth;if(n.headers=p=Ni.from(p),n.url=bi(Yi(n.baseURL,n.url),e.params,e.paramsSerializer),c&&p.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pi.isFormData(a))if(Ei.hasStandardBrowserEnv||Ei.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(!1!==(i=p.getContentType())){var d=i?i.split(";").map(function(e){return e.trim()}).filter(Boolean):[],g=y(t=d)||l(t)||f(t)||v(),h=g[0],m=g.slice(1);p.setContentType([h||"multipart/form-data"].concat(r(m)).join("; "))}if(Ei.hasStandardBrowserEnv&&(o&&pi.isFunction(o)&&(o=o(n)),o||!1!==o&&Qi(n.url))){var w=s&&u&&Hi.read(u);w&&p.set(s,w)}return n},at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(i,t){var n,a=nt(e),o=a.data,r=Ni.from(a.headers).normalize(),l=a.responseType;function s(){a.cancelToken&&a.cancelToken.unsubscribe(n),a.signal&&a.signal.removeEventListener("abort",n)}var u=new XMLHttpRequest;function p(){if(u){var n=Ni.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());Vi(function(e){i(e),s()},function(e){t(e),s()},{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}}u.open(a.method.toUpperCase(),a.url,!0),u.timeout=a.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(t(new ci("Request aborted",ci.ECONNABORTED,a,u)),u=null)},u.onerror=function(){t(new ci("Network Error",ci.ERR_NETWORK,a,u)),u=null},u.ontimeout=function(){var e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",i=a.transitional||Pi;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),t(new ci(e,i.clarifyTimeoutError?ci.ETIMEDOUT:ci.ECONNABORTED,a,u)),u=null},void 0===o&&r.setContentType(null),"setRequestHeader"in u&&pi.forEach(r.toJSON(),function(e,i){u.setRequestHeader(i,e)}),pi.isUndefined(a.withCredentials)||(u.withCredentials=!!a.withCredentials),l&&"json"!==l&&(u.responseType=a.responseType),"function"==typeof a.onDownloadProgress&&u.addEventListener("progress",_i(a.onDownloadProgress,!0)),"function"==typeof a.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",_i(a.onUploadProgress)),(a.cancelToken||a.signal)&&(n=function(i){u&&(t(!i||i.type?new Ji(null,e,u):i),u.abort(),u=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));var c,d,g=(c=a.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c))&&d[1]||"");g&&-1===Ei.protocols.indexOf(g)?t(new ci("Unsupported protocol "+g+":",ci.ERR_BAD_REQUEST,e)):u.send(o||null)})},ot=function(e,i){var t,n=new AbortController,a=function(e){if(!t){t=!0,r();var i=e instanceof Error?e:this.reason;n.abort(i instanceof ci?i:new Ji(i instanceof Error?i.message:i))}},o=i&&setTimeout(function(){a(new ci("timeout ".concat(i," of ms exceeded"),ci.ETIMEDOUT))},i),r=function(){e&&(o&&clearTimeout(o),o=null,e.forEach(function(e){e&&(e.removeEventListener?e.removeEventListener("abort",a):e.unsubscribe(a))}),e=null)};e.forEach(function(e){return e&&e.addEventListener&&e.addEventListener("abort",a)});var l=n.signal;return l.unsubscribe=r,[l,function(){o&&clearTimeout(o),o=null}]},rt=o().mark(function e(i,t){var n,a,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.byteLength,t&&!(n1?"since :\n"+l.map(yt).join("\n"):" "+yt(l[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:wt};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function bt(e){return At(e),e.headers=Ni.from(e.headers),e.data=Ki.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),It.getAdapter(e.adapter||Ri.adapter)(e).then(function(i){return At(e),i.data=Ki.call(e,e.transformResponse,i),i.headers=Ni.from(i.headers),i},function(i){return Fi(i)||(At(e),i&&i.response&&(i.response.data=Ki.call(e,e.transformResponse,i.response),i.response.headers=Ni.from(i.response.headers))),Promise.reject(i)})}var jt="1.7.2",kt={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){kt[e]=function(t){return C(t)===e||"a"+(i<1?"n ":" ")+e}});var Pt={};kt.transitional=function(e,i,t){function n(e,i){return"[Axios v"+jt+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new ci(n(a," has been removed"+(i?" in "+i:"")),ci.ERR_DEPRECATED);return i&&!Pt[a]&&(Pt[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)}};var Ot={assertOptions:function(e,i,t){if("object"!==C(e))throw new ci("options must be an object",ci.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 ci("option "+o+" must be "+s,ci.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new ci("Unknown option "+o,ci.ERR_BAD_OPTION)}},validators:kt},Mt=Ot.validators,Tt=function(){return g(function e(i){c(this,e),this.defaults=i,this.interceptors={request:new ki,response:new ki}},[{key:"request",value:function(){var e=a(o().mark(function e(i,t){var n,a;return o().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){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=Zi(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&Ot.assertOptions(n,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=a&&(pi.isFunction(a)?i.paramsSerializer={serialize:a}:Ot.assertOptions(a,{encode:Mt.function,serialize:Mt.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&pi.merge(o.common,o[i.method]);o&&pi.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Ni.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=[bt.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 Ji(e,i,a),t(n.reason))})}return g(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:"source",value:function(){var i;return{token:new e(function(e){i=e}),cancel:i}}}])}();var Et={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(Et).forEach(function(e){var i=m(e,2),t=i[0],n=i[1];Et[n]=t});var Gt=Et;var Ut=function e(i){var t=new qt(i),n=Pe(qt.prototype.request,t);return pi.extend(n,qt.prototype,t,{allOwnKeys:!0}),pi.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Zi(i,t))},n}(Ri);Ut.Axios=qt,Ut.CanceledError=Ji,Ut.CancelToken=St,Ut.isCancel=Fi,Ut.VERSION=jt,Ut.toFormData=wi,Ut.AxiosError=ci,Ut.Cancel=Ut.CanceledError,Ut.all=function(e){return Promise.all(e)},Ut.spread=function(e){return function(i){return e.apply(null,i)}},Ut.isAxiosError=function(e){return pi.isObject(e)&&!0===e.isAxiosError},Ut.mergeConfig=Zi,Ut.AxiosHeaders=Ni,Ut.formToJSON=function(e){return Gi(pi.isHTMLForm(e)?new FormData(e):e)},Ut.getAdapter=It.getAdapter,Ut.HttpStatusCode=Gt,Ut.default=Ut;var Rt=Ut,xt={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Dt={formats:{JSON:"json",TEXT:"text"}},zt=function(){return g(function e(){c(this,e),this.log_level=xt.level.LNone,this.log_format=Dt.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 xt}},{key:"logFormatEnum",get:function(){return Dt}},{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===Dt.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);t128)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=K.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=K.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=K.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;e.then(function(n){a.config.logger.log("trace",n.status,"POST","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,n.headers,i,void 0),a.config.logger.log("debug",n.status,"POST","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,void 0,i,void 0);var o=n.data.access_token,r=n.data.refresh_token;a.setAccessToken(o),a.authData.refreshToken=r,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","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,t.response.headers,i,t.response.data),n(t)})}},{key:"_formAuthRequest",value:function(e,i){return Rt({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:O.default.stringify(i)})}},{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){return i||(i={}),Object.keys(i).reduce(function(e,t){return i[t]?"".concat(e,"&").concat(t,"=").concat(i[t]):e},"".concat(this.config.authUrl,"/").concat(e,"?"))}},{key:"paramToString",value:function(e){return e?e instanceof Date?e.toJSON():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 R(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:R(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),W(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 A(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function b(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<=j)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 b(this,i,t);case"ascii":return k(this,i,t);case"latin1":case"binary":return P(this,i,t);case"base64":return A(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(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 v(this,e,i,t);case"utf8":case"utf-8":return f(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 j=4096;function k(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 q(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 S(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||S(e,0,t,4),n.write(e,i,t,a,23,4),t+4}function G(e,i,t,a,o){return i=+i,t>>>=0,o||S(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||T(e,i,this.length);for(var n=this[e],a=1,o=0;++o>>=0,i>>>=0,t||T(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||T(e,1,this.length),this[e]},r.prototype.readUInt16LE=function(e,i){return e>>>=0,i||T(e,2,this.length),this[e]|this[e+1]<<8},r.prototype.readUInt16BE=function(e,i){return e>>>=0,i||T(e,2,this.length),this[e]<<8|this[e+1]},r.prototype.readUInt32LE=function(e,i){return e>>>=0,i||T(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||T(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||T(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||T(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||T(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},r.prototype.readInt16LE=function(e,i){e>>>=0,i||T(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||T(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||T(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||T(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||T(e,4,this.length),n.read(this,e,!0,23,4)},r.prototype.readFloatBE=function(e,i){return e>>>=0,i||T(e,4,this.length),n.read(this,e,!1,23,4)},r.prototype.readDoubleLE=function(e,i){return e>>>=0,i||T(e,8,this.length),n.read(this,e,!0,52,8)},r.prototype.readDoubleBE=function(e,i){return e>>>=0,i||T(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)||q(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)||q(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||q(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||q(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||q(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||q(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||q(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);q(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);q(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||q(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||q(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||q(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||q(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||q(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 G(this,e,i,!0,t)},r.prototype.writeDoubleBE=function(e,i,t){return G(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 z(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 W(e){return e!=e}}).call(this)}).call(this,e("buffer").Buffer)},{"base64-js":1,buffer:3,ieee754:4}],4:[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}},{}],5:[function(e,i,t){t.endianness=function(){return"LE"},t.hostname=function(){return"undefined"!=typeof location?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return"undefined"!=typeof navigator?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL="\n",t.homedir=function(){return"/"}},{}],6:[function(e,i,t){(function(e){(function(){"use strict";function t(e){if("string"!=typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function n(e,i){for(var t,n="",a=0,o=-1,r=0,l=0;l<=e.length;++l){if(l2){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:7}],7:[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-1?a(t):t}},{"./":9,"get-intrinsic":21}],9:[function(e,i,t){"use strict";var n=e("function-bind"),a=e("get-intrinsic"),o=e("set-function-length"),r=e("es-errors/type"),l=a("%Function.prototype.apply%"),s=a("%Function.prototype.call%"),u=a("%Reflect.apply%",!0)||n.call(s,l),p=e("es-define-property"),c=a("%Math.max%");i.exports=function(e){if("function"!=typeof e)throw new r("a function is required");var i=u(n,s,arguments);return o(i,1+c(0,e.length-(arguments.length-1)),!0)};var d=function(){return u(n,l,arguments)};p?p(i.exports,"apply",{value:d}):i.exports.apply=d},{"es-define-property":11,"es-errors/type":17,"function-bind":20,"get-intrinsic":21,"set-function-length":34}],10:[function(e,i,t){"use strict";var n=e("es-define-property"),a=e("es-errors/syntax"),o=e("es-errors/type"),r=e("gopd");i.exports=function(e,i,t){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new o("`obj` must be an object or a function`");if("string"!=typeof i&&"symbol"!=typeof i)throw new o("`property` must be a string or a symbol`");if(arguments.length>3&&"boolean"!=typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!=typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!=typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!=typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var l=arguments.length>3?arguments[3]:null,s=arguments.length>4?arguments[4]:null,u=arguments.length>5?arguments[5]:null,p=arguments.length>6&&arguments[6],c=!!r&&r(e,i);if(n)n(e,i,{configurable:null===u&&c?c.configurable:!u,enumerable:null===l&&c?c.enumerable:!l,value:t,writable:null===s&&c?c.writable:!s});else{if(!p&&(l||s||u))throw new a("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");e[i]=t}}},{"es-define-property":11,"es-errors/syntax":16,"es-errors/type":17,gopd:22}],11:[function(e,i,t){"use strict";var n=e("get-intrinsic")("%Object.defineProperty%",!0)||!1;if(n)try{n({},"a",{value:1})}catch(e){n=!1}i.exports=n},{"get-intrinsic":21}],12:[function(e,i,t){"use strict";i.exports=EvalError},{}],13:[function(e,i,t){"use strict";i.exports=Error},{}],14:[function(e,i,t){"use strict";i.exports=RangeError},{}],15:[function(e,i,t){"use strict";i.exports=ReferenceError},{}],16:[function(e,i,t){"use strict";i.exports=SyntaxError},{}],17:[function(e,i,t){"use strict";i.exports=TypeError},{}],18:[function(e,i,t){"use strict";i.exports=URIError},{}],19:[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 s('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,e))throw new l("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var t=function(e){var i=M(e,0,1),t=M(e,-1);if("%"===i&&"%"!==t)throw new l("invalid intrinsic syntax, expected closing `%`");if("%"===t&&"%"!==i)throw new l("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,q,function(e,i,t,a){n[n.length]=t?O(a,S,"$1"):i||e}),n}(e),n=t.length>0?t[0]:"",a=E("%"+n+"%",i),o=a.name,r=a.value,u=!1,p=a.alias;p&&(n=p[0],P(t,k([0,1],p)));for(var c=1,g=!0;c=t.length){var f=d(r,h);r=(g=!!f)&&"get"in f&&!("originalValue"in f.get)?f.get:r[h]}else g=j(r,h),r=r[h];g&&!u&&(C[o]=r)}}return r}},{"es-errors":13,"es-errors/eval":12,"es-errors/range":14,"es-errors/ref":15,"es-errors/syntax":16,"es-errors/type":17,"es-errors/uri":18,"function-bind":20,"has-proto":24,"has-symbols":25,hasown:27}],22:[function(e,i,t){"use strict";var n=e("get-intrinsic")("%Object.getOwnPropertyDescriptor%",!0);if(n)try{n([],"length")}catch(e){n=null}i.exports=n},{"get-intrinsic":21}],23:[function(e,i,t){"use strict";var n=e("es-define-property"),a=function(){return!!n};a.hasArrayLengthDefineBug=function(){if(!n)return null;try{return 1!==n([],"length",{value:1}).length}catch(e){return!0}},i.exports=a},{"es-define-property":11}],24:[function(e,i,t){"use strict";var n={__proto__:null,foo:{}},a=Object;i.exports=function(){return{__proto__:n}.foo===n.foo&&!(n instanceof a)}},{}],25:[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":26}],26:[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(i 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 n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==i)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,i))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,i);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},{}],27:[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":20}],28:[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,v=Function.prototype.toString,f=String.prototype.match,w=String.prototype.slice,y=String.prototype.replace,C=String.prototype.toUpperCase,I=String.prototype.toLowerCase,A=RegExp.prototype.test,b=Array.prototype.concat,j=Array.prototype.join,k=Array.prototype.slice,P=Math.floor,O="function"==typeof BigInt?BigInt.prototype.valueOf:null,M=Object.getOwnPropertySymbols,T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,q="function"==typeof Symbol&&"object"==typeof Symbol.iterator,S="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===q||"symbol")?Symbol.toStringTag:null,E=Object.prototype.propertyIsEnumerable,G=("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||A.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 x=e("./util.inspect"),R=x.custom,D=N(R)?R:null;function z(e,i,t){var n="double"===(t.quoteStyle||i)?'"':"'";return n+e+n}function B(e){return y.call(String(e),/"/g,""")}function W(e){return!("[object Array]"!==J(e)||S&&"object"==typeof e&&S in e)}function L(e){return!("[object RegExp]"!==J(e)||S&&"object"==typeof e&&S in e)}function N(e){if(q)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!T)return!1;try{return T.call(e),!0}catch(e){}return!1}i.exports=function e(i,n,a,l){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(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=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof m&&"symbol"!==m)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(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(F(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=y.call(y.call(i,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_);return z(o,"single",t)}(i,s);if("number"==typeof i){if(0===i)return 1/0/i>0?"0":"-0";var A=String(i);return C?U(i,A):A}if("bigint"==typeof i){var P=String(i)+"n";return C?U(i,P):P}var M=void 0===s.depth?5:s.depth;if(void 0===a&&(a=0),a>=M&&M>0&&"object"==typeof i)return W(i)?"[Array]":"[Object]";var R=function(e,i){var t;if("\t"===e.indent)t="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;t=j.call(Array(e.indent+1)," ")}return{base:t,prev:j.call(Array(i+1),t)}}(s,a);if(void 0===l)l=[];else if(V(l,i)>=0)return"[Circular]";function K(i,t,n){if(t&&(l=k.call(l)).push(t),n){var o={depth:s.depth};return F(s,"quoteStyle")&&(o.quoteStyle=s.quoteStyle),e(i,o,a+1,l)}return e(i,s,a+1,l)}if("function"==typeof i&&!L(i)){var X=function(e){if(e.name)return e.name;var i=f.call(v.call(e),/^function\s*([\w$]+)/);if(i)return i[1];return null}(i),ee=Z(i,K);return"[Function"+(X?": "+X:" (anonymous)")+"]"+(ee.length>0?" { "+j.call(ee,", ")+" }":"")}if(N(i)){var ie=q?y.call(String(i),/^(Symbol\(.*\))_[^)]*$/,"$1"):T.call(i);return"object"!=typeof i||q?ie:Q(ie)}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 te="<"+I.call(String(i.nodeName)),ne=i.attributes||[],ae=0;ae",i.childNodes&&i.childNodes.length&&(te+="..."),te+=""+I.call(String(i.nodeName))+">"}if(W(i)){if(0===i.length)return"[]";var oe=Z(i,K);return R&&!function(e){for(var i=0;i=0)return!1;return!0}(oe)?"["+$(oe,R)+"]":"[ "+j.call(oe,", ")+" ]"}if(function(e){return!("[object Error]"!==J(e)||S&&"object"==typeof e&&S in e)}(i)){var re=Z(i,K);return"cause"in Error.prototype||!("cause"in i)||E.call(i,"cause")?0===re.length?"["+String(i)+"]":"{ ["+String(i)+"] "+j.call(re,", ")+" }":"{ ["+String(i)+"] "+j.call(b.call("[cause]: "+K(i.cause),re),", ")+" }"}if("object"==typeof i&&m){if(D&&"function"==typeof i[D]&&x)return x(i,{depth:M-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 le=[];return r&&r.call(i,function(e,t){le.push(K(t,i,!0)+" => "+K(e,i))}),Y("Map",o.call(i),le,R)}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 se=[];return p&&p.call(i,function(e){se.push(K(e,i))}),Y("Set",u.call(i),se,R)}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 H("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 H("WeakSet");if(function(e){if(!g||!e||"object"!=typeof e)return!1;try{return g.call(e),!0}catch(e){}return!1}(i))return H("WeakRef");if(function(e){return!("[object Number]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(K(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 Q(K(O.call(i)));if(function(e){return!("[object Boolean]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(h.call(i));if(function(e){return!("[object String]"!==J(e)||S&&"object"==typeof e&&S in e)}(i))return Q(K(String(i)));if("undefined"!=typeof window&&i===window)return"{ [object Window] }";if(i===t)return"{ [object globalThis] }";if(!function(e){return!("[object Date]"!==J(e)||S&&"object"==typeof e&&S in e)}(i)&&!L(i)){var ue=Z(i,K),pe=G?G(i)===Object.prototype:i instanceof Object||i.constructor===Object,ce=i instanceof Object?"":"null prototype",de=!pe&&S&&Object(i)===i&&S in i?w.call(J(i),8,-1):ce?"Object":"",ge=(pe||"function"!=typeof i.constructor?"":i.constructor.name?i.constructor.name+" ":"")+(de||ce?"["+j.call(b.call([],de||[],ce||[]),": ")+"] ":"");return 0===ue.length?ge+"{}":R?ge+"{"+$(ue,R)+"}":ge+"{ "+j.call(ue,", ")+" }"}return String(i)};var K=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,i){return K.call(e,i)}function J(e){return m.call(e)}function V(e,i){if(e.indexOf)return e.indexOf(i);for(var t=0,n=e.length;t-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?[]:[].concat(a);else{r=t.plainObjects?Object.create(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,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:r.strictNullHandling}}(i);if(""===e||null===e||void 0===e)return t.plainObjects?Object.create(null):{};for(var p="string"==typeof e?function(e,i){var t,u={__proto__:null},p=i.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=i.parameterLimit===1/0?void 0:i.parameterLimit,d=p.split(i.delimiter,c),g=-1,h=i.charset;if(i.charsetSentinel)for(t=0;t-1&&(v=o(v)?[v]:v);var C=a.call(u,m);C&&"combine"===i.duplicates?u[m]=n.combine(u[m],v):C&&"last"!==i.duplicates||(u[m]=v)}return u}(e,t):e,c=t.plainObjects?Object.create(null):{},d=Object.keys(p),g=0;g0?P.join(",")||null:void 0}];else if(s(v))S=v;else{var G=Object.keys(P);S=f?G.sort(f):G}var U=d?t.replace(/\./g,"%2E"):t,x=r&&s(P)&&1===P.length?U+"[]":U;if(l&&s(P)&&0===P.length)return x+"[]";for(var R=0;R0?C+y:""}},{"./formats":29,"./utils":33,"side-channel":35}],33:[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?Object.create(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;n4294967295||s(i)!==i)throw new l("`length` must be a positive 32-bit integer");var t=arguments.length>2&&!!arguments[2],n=!0,u=!0;if("length"in e&&r){var p=r(e,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(u=!1)}return(n||u||!t)&&(o?a(e,"length",i,!0,!0):a(e,"length",i)),e}},{"define-data-property":10,"es-errors/type":17,"get-intrinsic":21,gopd:22,"has-property-descriptors":23}],35:[function(e,i,t){"use strict";var n=e("get-intrinsic"),a=e("call-bind/callBound"),o=e("object-inspect"),r=e("es-errors/type"),l=n("%WeakMap%",!0),s=n("%Map%",!0),u=a("WeakMap.prototype.get",!0),p=a("WeakMap.prototype.set",!0),c=a("WeakMap.prototype.has",!0),d=a("Map.prototype.get",!0),g=a("Map.prototype.set",!0),h=a("Map.prototype.has",!0),m=function(e,i){for(var t,n=e;null!==(t=n.next);n=t)if(t.key===i)return n.next=t.next,t.next=e.next,e.next=t,t};i.exports=function(){var e,i,t,n={assert:function(e){if(!n.has(e))throw new r("Side channel does not contain "+o(e))},get:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return u(e,n)}else if(s){if(i)return d(i,n)}else if(t)return function(e,i){var t=m(e,i);return t&&t.value}(t,n)},has:function(n){if(l&&n&&("object"==typeof n||"function"==typeof n)){if(e)return c(e,n)}else if(s){if(i)return h(i,n)}else if(t)return function(e,i){return!!m(e,i)}(t,n);return!1},set:function(n,a){l&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new l),p(e,n,a)):s?(i||(i=new s),g(i,n,a)):(t||(t={key:{},next:null}),function(e,i,t){var n=m(e,i);n?n.value=t:e.next={key:i,next:e.next,value:t}}(t,n,a))}};return n}},{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],platformClient:[function(e,i,t){(function(t,n){(function(){"use strict";function n(e,i,t,n,a,o,r){try{var l=e[o](r),s=l.value}catch(e){return void t(e)}l.done?i(s):Promise.resolve(s).then(n,a)}function a(e){return function(){var i=this,t=arguments;return new Promise(function(a,o){var r=e.apply(i,t);function l(e){n(r,a,o,l,s,"next",e)}function s(e){n(r,a,o,l,s,"throw",e)}l(void 0)})}}function o(){o=function(){return i};var e,i={},t=Object.prototype,n=t.hasOwnProperty,a=Object.defineProperty||function(e,i,t){e[i]=t.value},r="function"==typeof Symbol?Symbol:{},l=r.iterator||"@@iterator",s=r.asyncIterator||"@@asyncIterator",u=r.toStringTag||"@@toStringTag";function p(e,i,t){return Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[i]}try{p({},"")}catch(e){p=function(e,i,t){return e[i]=t}}function c(e,i,t,n){var o=i&&i.prototype instanceof w?i:w,r=Object.create(o.prototype),l=new E(n||[]);return a(r,"_invoke",{value:M(e,t,l)}),r}function d(e,i,t){try{return{type:"normal",arg:e.call(i,t)}}catch(e){return{type:"throw",arg:e}}}i.wrap=c;var g="suspendedStart",h="suspendedYield",m="executing",v="completed",f={};function w(){}function y(){}function I(){}var A={};p(A,l,function(){return this});var b=Object.getPrototypeOf,j=b&&b(b(G([])));j&&j!==t&&n.call(j,l)&&(A=j);var k=I.prototype=w.prototype=Object.create(A);function P(e){["next","throw","return"].forEach(function(i){p(e,i,function(e){return this._invoke(i,e)})})}function O(e,i){function t(a,o,r,l){var s=d(e[a],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==C(p)&&n.call(p,"__await")?i.resolve(p.__await).then(function(e){t("next",e,r,l)},function(e){t("throw",e,r,l)}):i.resolve(p).then(function(e){u.value=e,r(u)},function(e){return t("throw",e,r,l)})}l(s.arg)}var o;a(this,"_invoke",{value:function(e,n){function a(){return new i(function(i,a){t(e,n,i,a)})}return o=o?o.then(a,a):a()}})}function M(i,t,n){var a=g;return function(o,r){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===o)throw r;return{value:e,done:!0}}for(n.method=o,n.arg=r;;){var l=n.delegate;if(l){var s=T(l,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===g)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var u=d(i,t,n);if("normal"===u.type){if(a=n.done?v:h,u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function T(i,t){var n=t.method,a=i.iterator[n];if(a===e)return t.delegate=null,"throw"===n&&i.iterator.return&&(t.method="return",t.arg=e,T(i,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var o=d(a,i.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,f;var r=o.arg;return r?r.done?(t[i.resultName]=r.value,t.next=i.nextLoc,"return"!==t.method&&(t.method="next",t.arg=e),t.delegate=null,f):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function q(e){var i={tryLoc:e[0]};1 in e&&(i.catchLoc=e[1]),2 in e&&(i.finallyLoc=e[2],i.afterLoc=e[3]),this.tryEntries.push(i)}function S(e){var i=e.completion||{};i.type="normal",delete i.arg,e.completion=i}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(q,this),this.reset(!0)}function G(i){if(i||""===i){var t=i[l];if(t)return t.call(i);if("function"==typeof i.next)return i;if(!isNaN(i.length)){var a=-1,o=function t(){for(;++a=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),S(t),f}},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;S(t)}return a}}throw Error("illegal catch attempt")},delegateYield:function(i,t,n){return this.delegate={iterator:G(i),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=e),f}},i}function r(e){return function(e){if(Array.isArray(e))return w(e)}(e)||l(e)||f(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 l(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function s(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 u(e){for(var i=1;ie.length)&&(i=e.length);for(var t=0,n=Array(i);t>18&63]+q[a>>12&63]+q[a>>6&63]+q[63&a]);return o.join("")}function R(e){var i;G||U();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+=q[i>>2],a+=q[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=q[i>>10],a+=q[i>>4&63],a+=q[i<<2&63],a+="="),o.push(a),o.join("")}function D(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 z(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 B={}.toString,W=Array.isArray||function(e){return"[object Array]"==B.call(e)};function L(){return K.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function N(e,i){if(L()=L())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+L().toString(16)+" bytes");return 0|e}function H(e){return!(null==e||!e._isBuffer)}function Y(e,i){if(H(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 Ae(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return be(e).length;default:if(n)return Ae(e).length;i=(""+i).toLowerCase(),n=!0}}function $(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function Z(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=K.from(i,n)),H(i))return 0===i.length?-1:X(e,i,t,n,a);if("number"==typeof i)return i&=255,K.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):X(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function X(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 re(e,i,t){return 0===i&&t===e.length?R(e):R(e.slice(i,t))}function le(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<=se)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 le(this,i,t);case"ascii":return ue(this,i,t);case"latin1":case"binary":return pe(this,i,t);case"base64":return re(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},K.prototype.equals=function(e){if(!H(e))throw new TypeError("Argument must be a Buffer");return this===e||0===K.compare(this,e)},K.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},K.prototype.compare=function(e,i,t,n,a){if(!H(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 ee(this,e,i,t);case"utf8":case"utf-8":return ie(this,e,i,t);case"ascii":return te(this,e,i,t);case"latin1":case"binary":return ne(this,e,i,t);case"base64":return ae(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},K.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var se=4096;function ue(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 he(e,i,t,n,a,o){if(!H(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function me(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 ve(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 fe(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 we(e,i,t,n,a){return a||fe(e,0,t,4),z(e,i,t,n,23,4),t+4}function ye(e,i,t,n,a){return a||fe(e,0,t,8),z(e,i,t,n,52,8),t+8}K.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},K.prototype.readUInt8=function(e,i){return i||ge(e,1,this.length),this[e]},K.prototype.readUInt16LE=function(e,i){return i||ge(e,2,this.length),this[e]|this[e+1]<<8},K.prototype.readUInt16BE=function(e,i){return i||ge(e,2,this.length),this[e]<<8|this[e+1]},K.prototype.readUInt32LE=function(e,i){return i||ge(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},K.prototype.readUInt32BE=function(e,i){return i||ge(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},K.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||ge(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},K.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||ge(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},K.prototype.readInt8=function(e,i){return i||ge(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},K.prototype.readInt16LE=function(e,i){i||ge(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},K.prototype.readInt16BE=function(e,i){i||ge(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},K.prototype.readInt32LE=function(e,i){return i||ge(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},K.prototype.readInt32BE=function(e,i){return i||ge(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},K.prototype.readFloatLE=function(e,i){return i||ge(e,4,this.length),D(this,e,!0,23,4)},K.prototype.readFloatBE=function(e,i){return i||ge(e,4,this.length),D(this,e,!1,23,4)},K.prototype.readDoubleLE=function(e,i){return i||ge(e,8,this.length),D(this,e,!0,52,8)},K.prototype.readDoubleBE=function(e,i){return i||ge(e,8,this.length),D(this,e,!1,52,8)},K.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||he(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},K.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,1,255,0),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},K.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):me(this,e,i,!0),i+2},K.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,65535,0),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):me(this,e,i,!1),i+2},K.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):ve(this,e,i,!0),i+4},K.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,4294967295,0),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ve(this,e,i,!1),i+4},K.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);he(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},K.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);he(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},K.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,1,127,-128),K.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},K.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):me(this,e,i,!0),i+2},K.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,2,32767,-32768),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):me(this,e,i,!1),i+2},K.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,2147483647,-2147483648),K.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):ve(this,e,i,!0),i+4},K.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||he(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),K.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ve(this,e,i,!1),i+4},K.prototype.writeFloatLE=function(e,i,t){return we(this,e,i,!0,t)},K.prototype.writeFloatBE=function(e,i,t){return we(this,e,i,!1,t)},K.prototype.writeDoubleLE=function(e,i,t){return ye(this,e,i,!0,t)},K.prototype.writeDoubleBE=function(e,i,t){return ye(this,e,i,!1,t)},K.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||!K.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 be(e){return function(e){var i,t,n,a,o,r;G||U();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 E(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=S[e.charCodeAt(i)]<<2|S[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=S[e.charCodeAt(i)]<<10|S[e.charCodeAt(i+1)]<<4|S[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(Ce,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function je(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function ke(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function Pe(e,i){return function(){return e.apply(i,arguments)}}var Oe,Me=Object.prototype.toString,Te=Object.getPrototypeOf,qe=(Oe=Object.create(null),function(e){var i=Me.call(e);return Oe[i]||(Oe[i]=i.slice(8,-1).toLowerCase())}),Se=function(e){return e=e.toLowerCase(),function(i){return qe(i)===e}},Ee=function(e){return function(i){return C(i)===e}},Ge=Array.isArray,Ue=Ee("undefined");var xe=Se("ArrayBuffer");var Re=Ee("string"),De=Ee("function"),ze=Ee("number"),Be=function(e){return null!==e&&"object"===C(e)},We=function(e){if("object"!==qe(e))return!1;var i=Te(e);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in e||Symbol.iterator in e)},Le=Se("Date"),Ne=Se("File"),Ke=Se("Blob"),Fe=Se("FileList"),Je=Se("URLSearchParams"),Ve=m(["ReadableStream","Request","Response","Headers"].map(Se),4),_e=Ve[0],Qe=Ve[1],He=Ve[2],Ye=Ve[3];function $e(e,i){var t,n,a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==a&&a;if(null!==e&&void 0!==e)if("object"!==C(e)&&(e=[e]),Ge(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Xe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:T,ei=function(e){return!Ue(e)&&e!==Xe};var ii,ti=(ii="undefined"!=typeof Uint8Array&&Te(Uint8Array),function(e){return ii&&e instanceof ii}),ni=Se("HTMLFormElement"),ai=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),oi=Se("RegExp"),ri=function(e,i){var t={};$e(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},li="abcdefghijklmnopqrstuvwxyz",si={DIGIT:"0123456789",ALPHA:li,ALPHA_DIGIT:li+li.toUpperCase()+"0123456789"};var ui=Se("AsyncFunction"),pi={isArray:Ge,isArrayBuffer:xe,isBuffer:function(e){return null!==e&&!Ue(e)&&null!==e.constructor&&!Ue(e.constructor)&&De(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||De(e.append)&&("formdata"===(i=qe(e))||"object"===i&&De(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&xe(e.buffer)},isString:Re,isNumber:ze,isBoolean:function(e){return!0===e||!1===e},isObject:Be,isPlainObject:We,isReadableStream:_e,isRequest:Qe,isResponse:He,isHeaders:Ye,isUndefined:Ue,isDate:Le,isFile:Ne,isBlob:Ke,isRegExp:oi,isFunction:De,isStream:function(e){return Be(e)&&De(e.pipe)},isURLSearchParams:Je,isTypedArray:ti,isFileList:Fe,forEach:$e,merge:function e(){for(var i=(ei(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&Ze(t,a)||a;We(t[o])&&We(n)?t[o]=e(t[o],n):We(n)?t[o]=e({},n):Ge(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&&Te(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:qe,kindOfTest:Se,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(Ge(e))return e;var i=e.length;if(!ze(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:ni,hasOwnProperty:ai,hasOwnProp:ai,reduceDescriptors:ri,freezeMethods:function(e){ri(e,function(i,t){if(De(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];De(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 Ge(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:Ze,global:Xe,isContextDefined:ei,ALPHABET:si,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]:si.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&De(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10);return function e(t,n){if(Be(t)){if(i.indexOf(t)>=0)return;if(!("toJSON"in t)){i[n]=t;var a=Ge(t)?[]:{};return $e(t,function(i,t){var o=e(i,n+1);!Ue(o)&&(a[t]=o)}),i[n]=void 0,a}}return t}(e,0)},isAsyncFn:ui,isThenable:function(e){return e&&(Be(e)||De(e))&&De(e.then)&&De(e.catch)}};function ci(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)}pi.inherits(ci,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:pi.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var di=ci.prototype,gi={};["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){gi[e]={value:e}}),Object.defineProperties(ci,gi),Object.defineProperty(di,"isAxiosError",{value:!0}),ci.from=function(e,i,t,n,a,o){var r=Object.create(di);return pi.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),ci.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function hi(e){return pi.isPlainObject(e)||pi.isArray(e)}function mi(e){return pi.endsWith(e,"[]")?e.slice(0,-2):e}function vi(e,i,t){return e?e.concat(i).map(function(e,i){return e=mi(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var fi=pi.toFlatObject(pi,{},null,function(e){return/^is[A-Z]/.test(e)});function wi(e,i,t){if(!pi.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=pi.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!pi.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&pi.isSpecCompliantForm(i);if(!pi.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(pi.isDate(e))return e.toISOString();if(!l&&pi.isBlob(e))throw new ci("Blob is not supported. Use a Buffer instead.");return pi.isArrayBuffer(e)||pi.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):K.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===C(e))if(pi.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(pi.isArray(e)&&function(e){return pi.isArray(e)&&!e.some(hi)}(e)||(pi.isFileList(e)||pi.endsWith(t,"[]"))&&(l=pi.toArray(e)))return t=mi(t),l.forEach(function(e,n){!pi.isUndefined(e)&&null!==e&&i.append(!0===r?vi([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!hi(e)||(i.append(vi(a,t,o),s(e)),!1)}var p=[],c=Object.assign(fi,{defaultVisitor:u,convertValue:s,isVisitable:hi});if(!pi.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!pi.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),pi.forEach(t,function(t,o){!0===(!(pi.isUndefined(t)||null===t)&&a.call(i,t,pi.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function yi(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function Ci(e,i){this._pairs=[],e&&wi(e,this,i)}var Ii=Ci.prototype;function Ai(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function bi(e,i,t){if(!i)return e;var n,a=t&&t.encode||Ai,o=t&&t.serialize;if(n=o?o(i,t):pi.isURLSearchParams(i)?i.toString():new Ci(i,t).toString(a)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}Ii.append=function(e,i){this._pairs.push([e,i])},Ii.toString=function(e){var i=e?function(i){return e.call(this,i,yi)}:yi;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var ji,ki=function(){return g(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){pi.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),Pi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Oi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Ci,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Mi="undefined"!=typeof window&&"undefined"!=typeof document,Ti=(ji="undefined"!=typeof navigator&&navigator.product,Mi&&["ReactNative","NativeScript","NS"].indexOf(ji)<0),qi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Si=Mi&&window.location.href||"http://localhost",Ei=u(u({},Object.freeze({__proto__:null,hasBrowserEnv:Mi,hasStandardBrowserWebWorkerEnv:qi,hasStandardBrowserEnv:Ti,origin:Si})),Oi);function Gi(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&&pi.isArray(n)?n.length:o,l?(pi.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&pi.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&pi.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=pi.isObject(e);if(o&&pi.isHTMLForm(e)&&(e=new FormData(e)),pi.isFormData(e))return a?JSON.stringify(Gi(e)):e;if(pi.isArrayBuffer(e)||pi.isBuffer(e)||pi.isStream(e)||pi.isFile(e)||pi.isBlob(e)||pi.isReadableStream(e))return e;if(pi.isArrayBufferView(e))return e.buffer;if(pi.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 wi(e,new Ei.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return Ei.isNode&&pi.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=pi.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return wi(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(pi.isString(e))try{return(i||JSON.parse)(e),pi.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||Ui.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(pi.isResponse(e)||pi.isReadableStream(e))return e;if(e&&pi.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 ci.from(e,ci.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:Ei.classes.FormData,Blob:Ei.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};pi.forEach(["delete","get","head","post","put","patch"],function(e){Ui.headers[e]={}});var xi=Ui,Ri=pi.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"]),Di=Symbol("internals");function zi(e){return e&&String(e).trim().toLowerCase()}function Bi(e){return!1===e||null==e?e:pi.isArray(e)?e.map(Bi):String(e)}function Wi(e,i,t,n,a){return pi.isFunction(n)?n.call(this,i,t):(a&&(i=t),pi.isString(i)?pi.isString(n)?-1!==i.indexOf(n):pi.isRegExp(n)?n.test(i):void 0:void 0)}var Li=function(){return g(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=zi(i);if(!a)throw new Error("header name must be a non-empty string");var o=pi.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Bi(e))}var o=function(e,i){return pi.forEach(e,function(e,t){return a(e,t,i)})};if(pi.isPlainObject(e)||e instanceof this.constructor)o(e,i);else if(pi.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]&&Ri[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(pi.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=f(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=zi(e)){var t=pi.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(pi.isFunction(i))return i.call(this,n,t);if(pi.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=zi(e)){var t=pi.findKey(this,e);return!(!t||void 0===this[t]||i&&!Wi(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=zi(e)){var a=pi.findKey(t,e);!a||i&&!Wi(0,t[a],a,i)||(delete t[a],n=!0)}}return pi.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&&!Wi(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return pi.forEach(this,function(n,a){var o=pi.findKey(t,a);if(o)return i[o]=Bi(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]=Bi(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-tn)return a&&(clearTimeout(a),a=null),t=r,e.apply(null,arguments);a||(a=setTimeout(function(){return a=null,t=Date.now(),e.apply(null,i)},n-(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={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};u[i?"download":"upload"]=!0,e(u)},t)},Qi=Ei.hasStandardBrowserEnv?function(){var e,i=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");function n(e){var n=e;return i&&(t.setAttribute("href",n),n=t.href),t.setAttribute("href",n),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return e=n(window.location.href),function(i){var t=pi.isString(i)?n(i):i;return t.protocol===e.protocol&&t.host===e.host}}():function(){return!0},Hi=Ei.hasStandardBrowserEnv?{write:function(e,i,t,n,a,o){var r=[e+"="+encodeURIComponent(i)];pi.isNumber(t)&&r.push("expires="+new Date(t).toGMTString()),pi.isString(n)&&r.push("path="+n),pi.isString(a)&&r.push("domain="+a),!0===o&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){var i=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Yi(e,i){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i)?function(e,i){return i?e.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):e}(e,i):i}var $i=function(e){return e instanceof Ni?u({},e):e};function Zi(e,i){i=i||{};var t={};function n(e,i,t){return pi.isPlainObject(e)&&pi.isPlainObject(i)?pi.merge.call({caseless:t},e,i):pi.isPlainObject(i)?pi.merge({},i):pi.isArray(i)?i.slice():i}function a(e,i,t){return pi.isUndefined(i)?pi.isUndefined(e)?void 0:n(void 0,e,t):n(e,i,t)}function o(e,i){if(!pi.isUndefined(i))return n(void 0,i)}function r(e,i){return pi.isUndefined(i)?pi.isUndefined(e)?void 0:n(void 0,e):n(void 0,i)}function l(t,a,o){return o in i?n(t,a):o in e?n(void 0,t):void 0}var s={url:o,method:o,data:o,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:l,headers:function(e,i){return a($i(e),$i(i),!0)}};return pi.forEach(Object.keys(Object.assign({},e,i)),function(n){var o=s[n]||a,r=o(e[n],i[n],n);pi.isUndefined(r)&&o!==l||(t[n]=r)}),t}var Xi,et,it,tt,nt=function(e){var i,t,n=Zi({},e),a=n.data,o=n.withXSRFToken,s=n.xsrfHeaderName,u=n.xsrfCookieName,p=n.headers,c=n.auth;if(n.headers=p=Ni.from(p),n.url=bi(Yi(n.baseURL,n.url),e.params,e.paramsSerializer),c&&p.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),pi.isFormData(a))if(Ei.hasStandardBrowserEnv||Ei.hasStandardBrowserWebWorkerEnv)p.setContentType(void 0);else if(!1!==(i=p.getContentType())){var d=i?i.split(";").map(function(e){return e.trim()}).filter(Boolean):[],g=y(t=d)||l(t)||f(t)||v(),h=g[0],m=g.slice(1);p.setContentType([h||"multipart/form-data"].concat(r(m)).join("; "))}if(Ei.hasStandardBrowserEnv&&(o&&pi.isFunction(o)&&(o=o(n)),o||!1!==o&&Qi(n.url))){var w=s&&u&&Hi.read(u);w&&p.set(s,w)}return n},at="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(i,t){var n,a=nt(e),o=a.data,r=Ni.from(a.headers).normalize(),l=a.responseType;function s(){a.cancelToken&&a.cancelToken.unsubscribe(n),a.signal&&a.signal.removeEventListener("abort",n)}var u=new XMLHttpRequest;function p(){if(u){var n=Ni.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());Vi(function(e){i(e),s()},function(e){t(e),s()},{data:l&&"text"!==l&&"json"!==l?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:n,config:e,request:u}),u=null}}u.open(a.method.toUpperCase(),a.url,!0),u.timeout=a.timeout,"onloadend"in u?u.onloadend=p:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(p)},u.onabort=function(){u&&(t(new ci("Request aborted",ci.ECONNABORTED,a,u)),u=null)},u.onerror=function(){t(new ci("Network Error",ci.ERR_NETWORK,a,u)),u=null},u.ontimeout=function(){var e=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded",i=a.transitional||Pi;a.timeoutErrorMessage&&(e=a.timeoutErrorMessage),t(new ci(e,i.clarifyTimeoutError?ci.ETIMEDOUT:ci.ECONNABORTED,a,u)),u=null},void 0===o&&r.setContentType(null),"setRequestHeader"in u&&pi.forEach(r.toJSON(),function(e,i){u.setRequestHeader(i,e)}),pi.isUndefined(a.withCredentials)||(u.withCredentials=!!a.withCredentials),l&&"json"!==l&&(u.responseType=a.responseType),"function"==typeof a.onDownloadProgress&&u.addEventListener("progress",_i(a.onDownloadProgress,!0)),"function"==typeof a.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",_i(a.onUploadProgress)),(a.cancelToken||a.signal)&&(n=function(i){u&&(t(!i||i.type?new Ji(null,e,u):i),u.abort(),u=null)},a.cancelToken&&a.cancelToken.subscribe(n),a.signal&&(a.signal.aborted?n():a.signal.addEventListener("abort",n)));var c,d,g=(c=a.url,(d=/^([-+\w]{1,25})(:?\/\/|:)/.exec(c))&&d[1]||"");g&&-1===Ei.protocols.indexOf(g)?t(new ci("Unsupported protocol "+g+":",ci.ERR_BAD_REQUEST,e)):u.send(o||null)})},ot=function(e,i){var t,n=new AbortController,a=function(e){if(!t){t=!0,r();var i=e instanceof Error?e:this.reason;n.abort(i instanceof ci?i:new Ji(i instanceof Error?i.message:i))}},o=i&&setTimeout(function(){a(new ci("timeout ".concat(i," of ms exceeded"),ci.ETIMEDOUT))},i),r=function(){e&&(o&&clearTimeout(o),o=null,e.forEach(function(e){e&&(e.removeEventListener?e.removeEventListener("abort",a):e.unsubscribe(a))}),e=null)};e.forEach(function(e){return e&&e.addEventListener&&e.addEventListener("abort",a)});var l=n.signal;return l.unsubscribe=r,[l,function(){o&&clearTimeout(o),o=null}]},rt=o().mark(function e(i,t){var n,a,r;return o().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=i.byteLength,t&&!(n1?"since :\n"+l.map(yt).join("\n"):" "+yt(l[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:wt};function At(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ji(null,e)}function bt(e){return At(e),e.headers=Ni.from(e.headers),e.data=Ki.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),It.getAdapter(e.adapter||xi.adapter)(e).then(function(i){return At(e),i.data=Ki.call(e,e.transformResponse,i),i.headers=Ni.from(i.headers),i},function(i){return Fi(i)||(At(e),i&&i.response&&(i.response.data=Ki.call(e,e.transformResponse,i.response),i.response.headers=Ni.from(i.response.headers))),Promise.reject(i)})}var jt="1.7.2",kt={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){kt[e]=function(t){return C(t)===e||"a"+(i<1?"n ":" ")+e}});var Pt={};kt.transitional=function(e,i,t){function n(e,i){return"[Axios v"+jt+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new ci(n(a," has been removed"+(i?" in "+i:"")),ci.ERR_DEPRECATED);return i&&!Pt[a]&&(Pt[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)}};var Ot={assertOptions:function(e,i,t){if("object"!==C(e))throw new ci("options must be an object",ci.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 ci("option "+o+" must be "+s,ci.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new ci("Unknown option "+o,ci.ERR_BAD_OPTION)}},validators:kt},Mt=Ot.validators,Tt=function(){return g(function e(i){c(this,e),this.defaults=i,this.interceptors={request:new ki,response:new ki}},[{key:"request",value:function(){var e=a(o().mark(function e(i,t){var n,a;return o().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){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=Zi(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&Ot.assertOptions(n,{silentJSONParsing:Mt.transitional(Mt.boolean),forcedJSONParsing:Mt.transitional(Mt.boolean),clarifyTimeoutError:Mt.transitional(Mt.boolean)},!1),null!=a&&(pi.isFunction(a)?i.paramsSerializer={serialize:a}:Ot.assertOptions(a,{encode:Mt.function,serialize:Mt.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&pi.merge(o.common,o[i.method]);o&&pi.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Ni.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=[bt.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 Ji(e,i,a),t(n.reason))})}return g(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:"source",value:function(){var i;return{token:new e(function(e){i=e}),cancel:i}}}])}();var Et={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(Et).forEach(function(e){var i=m(e,2),t=i[0],n=i[1];Et[n]=t});var Gt=Et;var Ut=function e(i){var t=new qt(i),n=Pe(qt.prototype.request,t);return pi.extend(n,qt.prototype,t,{allOwnKeys:!0}),pi.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Zi(i,t))},n}(xi);Ut.Axios=qt,Ut.CanceledError=Ji,Ut.CancelToken=St,Ut.isCancel=Fi,Ut.VERSION=jt,Ut.toFormData=wi,Ut.AxiosError=ci,Ut.Cancel=Ut.CanceledError,Ut.all=function(e){return Promise.all(e)},Ut.spread=function(e){return function(i){return e.apply(null,i)}},Ut.isAxiosError=function(e){return pi.isObject(e)&&!0===e.isAxiosError},Ut.mergeConfig=Zi,Ut.AxiosHeaders=Ni,Ut.formToJSON=function(e){return Gi(pi.isHTMLForm(e)?new FormData(e):e)},Ut.getAdapter=It.getAdapter,Ut.HttpStatusCode=Gt,Ut.default=Ut;var xt=Ut,Rt={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},Dt={formats:{JSON:"json",TEXT:"text"}},zt=function(){return g(function e(){c(this,e),this.log_level=Rt.level.LNone,this.log_format=Dt.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 Rt}},{key:"logFormatEnum",get:function(){return Dt}},{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===Dt.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);t128)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=K.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=K.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=K.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;e.then(function(n){a.config.logger.log("trace",n.status,"POST","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,n.headers,i,void 0),a.config.logger.log("debug",n.status,"POST","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,void 0,i,void 0);var o=n.data.access_token,r=n.data.refresh_token;a.setAccessToken(o),a.authData.refreshToken=r,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","https://login.".concat(a.config.environment,"/oauth/token"),e.headers,t.response.headers,i,t.response.data),n(t)})}},{key:"_formAuthRequest",value:function(e,i){return xt({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:O.default.stringify(i)})}},{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){return i||(i={}),Object.keys(i).reduce(function(e,t){return i[t]?"".concat(e,"&").concat(t,"=").concat(i[t]):e},"".concat(this.config.authUrl,"/").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
+
+# AsyncQueryStatus getAnalyticsAgentcopilotsAggregatesJob(jobId)
+
+
+GET /api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}
+
+Get status for async query for agent copilot aggregates
+
+getAnalyticsAgentcopilotsAggregatesJob is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+
+Requires ANY permissions:
+
+* analytics:agentCopilotAggregate:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.AnalyticsApi();
+
+let jobId = "jobId_example"; // String | jobId
+
+apiInstance.getAnalyticsAgentcopilotsAggregatesJob(jobId)
+ .then((data) => {
+ console.log(`getAnalyticsAgentcopilotsAggregatesJob success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getAnalyticsAgentcopilotsAggregatesJob');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **jobId** | **String** | jobId | |
+{: class="table table-striped"}
+
+### Return type
+
+**AsyncQueryStatus**
+
+
+
+# AgentCopilotAsyncAggregateQueryResponse getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts)
+
+
+GET /api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results
+
+Fetch a page of results for an async aggregates query
+
+getAnalyticsAgentcopilotsAggregatesJobResults is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+
+Requires ANY permissions:
+
+* analytics:agentCopilotAggregate:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.AnalyticsApi();
+
+let jobId = "jobId_example"; // String | jobId
+let opts = {
+ 'cursor': "cursor_example" // String | Cursor token to retrieve next page
+};
+
+apiInstance.getAnalyticsAgentcopilotsAggregatesJobResults(jobId, opts)
+ .then((data) => {
+ console.log(`getAnalyticsAgentcopilotsAggregatesJobResults success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getAnalyticsAgentcopilotsAggregatesJobResults');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **jobId** | **String** | jobId | |
+ **cursor** | **String** | Cursor token to retrieve next page | [optional] |
+{: class="table table-striped"}
+
+### Return type
+
+**AgentCopilotAsyncAggregateQueryResponse**
+
# ReportingTurnsResponse getAnalyticsBotflowDivisionsReportingturns(botFlowId, opts)
@@ -1823,6 +1936,66 @@ This endpoint does not need any parameter.
**AnalyticsReportingSettings**
+
+
+# DashboardConfigurationListing getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts)
+
+
+GET /api/v2/analytics/reporting/settings/dashboards/query
+
+Get list of dashboard configurations
+
+Requires ALL permissions:
+
+* analytics:dashboardConfigurations:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.AnalyticsApi();
+
+let dashboardType = "dashboardType_example"; // String | List dashboard of given type
+let dashboardAccessFilter = "dashboardAccessFilter_example"; // String | Filter dashboard based on the owner of dashboard
+let opts = {
+ 'sortBy': "desc", // String |
+ 'pageNumber': 1, // Number |
+ 'pageSize': 9 // Number |
+};
+
+apiInstance.getAnalyticsReportingSettingsDashboardsQuery(dashboardType, dashboardAccessFilter, opts)
+ .then((data) => {
+ console.log(`getAnalyticsReportingSettingsDashboardsQuery success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getAnalyticsReportingSettingsDashboardsQuery');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **dashboardType** | **String** | List dashboard of given type |
**Values**: All, Public, Private, Shared, Favorites |
+ **dashboardAccessFilter** | **String** | Filter dashboard based on the owner of dashboard |
**Values**: OwnedByMe, OwnedByAnyone, NotOwnedByMe |
+ **sortBy** | **String** | | [optional] [default to desc] |
+ **pageNumber** | **Number** | | [optional] [default to 1] |
+ **pageSize** | **Number** | | [optional] [default to 9] |
+{: class="table table-striped"}
+
+### Return type
+
+**DashboardConfigurationListing**
+
# DashboardConfigurationListing getAnalyticsReportingSettingsUserDashboards(userId, opts)
@@ -2732,6 +2905,110 @@ apiInstance.postAnalyticsActionsAggregatesQuery(body)
**ActionAggregateQueryResponse**
+
+
+# AsyncQueryResponse postAnalyticsAgentcopilotsAggregatesJobs(body)
+
+
+POST /api/v2/analytics/agentcopilots/aggregates/jobs
+
+Query for agent copilot aggregates asynchronously
+
+postAnalyticsAgentcopilotsAggregatesJobs is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+
+Requires ANY permissions:
+
+* analytics:agentCopilotAggregate:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.AnalyticsApi();
+
+let body = {}; // Object | query
+
+apiInstance.postAnalyticsAgentcopilotsAggregatesJobs(body)
+ .then((data) => {
+ console.log(`postAnalyticsAgentcopilotsAggregatesJobs success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling postAnalyticsAgentcopilotsAggregatesJobs');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **body** | **Object** | query | |
+{: class="table table-striped"}
+
+### Return type
+
+**AsyncQueryResponse**
+
+
+
+# AgentCopilotAggregateQueryResponse postAnalyticsAgentcopilotsAggregatesQuery(body)
+
+
+POST /api/v2/analytics/agentcopilots/aggregates/query
+
+Query for agent copilot aggregates
+
+postAnalyticsAgentcopilotsAggregatesQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
+
+Requires ANY permissions:
+
+* analytics:agentCopilotAggregate:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.AnalyticsApi();
+
+let body = {}; // Object | query
+
+apiInstance.postAnalyticsAgentcopilotsAggregatesQuery(body)
+ .then((data) => {
+ console.log(`postAnalyticsAgentcopilotsAggregatesQuery success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling postAnalyticsAgentcopilotsAggregatesQuery');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **body** | **Object** | query | |
+{: class="table table-striped"}
+
+### Return type
+
+**AgentCopilotAggregateQueryResponse**
+
# AsyncQueryResponse postAnalyticsBotsAggregatesJobs(body)
@@ -3869,7 +4146,9 @@ apiInstance.postAnalyticsQueuesObservationsQuery(body)
POST /api/v2/analytics/ratelimits/aggregates/query
-Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded
+Query for limits rate limit aggregates. Data populated when limits are exceeded or are close to being exceeded. Not a source of truth for limits hit but a best effort estimate.
+
+The max property can be used to determine estimated rate limit value hit.
Requires ANY permissions:
diff --git a/build/docs/ConversationsApi.md b/build/docs/ConversationsApi.md
index c027117c..bff61baa 100644
--- a/build/docs/ConversationsApi.md
+++ b/build/docs/ConversationsApi.md
@@ -93,7 +93,6 @@ All URIs are relative to *https://api.mypurecloud.com*
[**getConversationsMessagingSetting**](ConversationsApi.html#getConversationsMessagingSetting) | **GET** /api/v2/conversations/messaging/settings/{messageSettingId} | Get a messaging setting
[**getConversationsMessagingSettings**](ConversationsApi.html#getConversationsMessagingSettings) | **GET** /api/v2/conversations/messaging/settings | Get a list of messaging settings
[**getConversationsMessagingSettingsDefault**](ConversationsApi.html#getConversationsMessagingSettingsDefault) | **GET** /api/v2/conversations/messaging/settings/default | Get the organization's default settings that will be used as the default when creating an integration.
-[**getConversationsMessagingSticker**](ConversationsApi.html#getConversationsMessagingSticker) | **GET** /api/v2/conversations/messaging/stickers/{messengerType} | Get a list of Messaging Stickers (Deprecated)
[**getConversationsMessagingSupportedcontent**](ConversationsApi.html#getConversationsMessagingSupportedcontent) | **GET** /api/v2/conversations/messaging/supportedcontent | Get a list of Supported Content profiles
[**getConversationsMessagingSupportedcontentDefault**](ConversationsApi.html#getConversationsMessagingSupportedcontentDefault) | **GET** /api/v2/conversations/messaging/supportedcontent/default | Get the organization's default supported content profile that will be used as the default when creating an integration.
[**getConversationsMessagingSupportedcontentSupportedContentId**](ConversationsApi.html#getConversationsMessagingSupportedcontentSupportedContentId) | **GET** /api/v2/conversations/messaging/supportedcontent/{supportedContentId} | Get a supported content profile
@@ -191,6 +190,7 @@ All URIs are relative to *https://api.mypurecloud.com*
[**postConversationsEmailMessagesDraftAttachmentsCopy**](ConversationsApi.html#postConversationsEmailMessagesDraftAttachmentsCopy) | **POST** /api/v2/conversations/emails/{conversationId}/messages/draft/attachments/copy | Copy attachments from an email message to the current draft.
[**postConversationsEmailParticipantCommunicationWrapup**](ConversationsApi.html#postConversationsEmailParticipantCommunicationWrapup) | **POST** /api/v2/conversations/emails/{conversationId}/participants/{participantId}/communications/{communicationId}/wrapup | Apply wrap-up for this conversation communication
[**postConversationsEmailParticipantReplace**](ConversationsApi.html#postConversationsEmailParticipantReplace) | **POST** /api/v2/conversations/emails/{conversationId}/participants/{participantId}/replace | Replace this participant with the specified user and/or address
+[**postConversationsEmailReconnect**](ConversationsApi.html#postConversationsEmailReconnect) | **POST** /api/v2/conversations/emails/{conversationId}/reconnect | Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
[**postConversationsEmails**](ConversationsApi.html#postConversationsEmails) | **POST** /api/v2/conversations/emails | Create an email conversation
[**postConversationsEmailsAgentless**](ConversationsApi.html#postConversationsEmailsAgentless) | **POST** /api/v2/conversations/emails/agentless | Create an email conversation, per API
[**postConversationsFaxes**](ConversationsApi.html#postConversationsFaxes) | **POST** /api/v2/conversations/faxes | Create Fax Conversation
@@ -4667,65 +4667,6 @@ This endpoint does not need any parameter.
**MessagingSetting**
-
-
-# MessagingStickerEntityListing getConversationsMessagingSticker(messengerType, opts)
-
-DEPRECATED
-
-GET /api/v2/conversations/messaging/stickers/{messengerType}
-
-Get a list of Messaging Stickers (Deprecated)
-
-This endpoint is deprecated. Please see the article https://help.mypurecloud.com/articles/deprecation-native-line-third-party-messaging-channel/
-
-Requires ALL permissions:
-
-* conversation:message:create
-
-### Example Usage
-
-```{"language":"javascript"}
-// Browser
-const platformClient = require('platformClient');
-// Node
-const platformClient = require('purecloud-platform-client-v2');
-
-// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
-platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
-
-let apiInstance = new platformClient.ConversationsApi();
-
-let messengerType = "messengerType_example"; // String | Messenger Type
-let opts = {
- 'pageSize': 25, // Number | Page size
- 'pageNumber': 1 // Number | Page number
-};
-
-apiInstance.getConversationsMessagingSticker(messengerType, opts)
- .then((data) => {
- console.log(`getConversationsMessagingSticker success! data: ${JSON.stringify(data, null, 2)}`);
- })
- .catch((err) => {
- console.log('There was a failure calling getConversationsMessagingSticker');
- console.error(err);
- });
-```
-
-### Parameters
-
-
-| Name | Type | Description | Notes |
-| ------------- | ------------- | ------------- | ------------- |
- **messengerType** | **String** | Messenger Type |
**Values**: line |
- **pageSize** | **Number** | Page size | [optional] [default to 25] |
- **pageNumber** | **Number** | Page number | [optional] [default to 1] |
-{: class="table table-striped"}
-
-### Return type
-
-**MessagingStickerEntityListing**
-
# SupportedContentListing getConversationsMessagingSupportedcontent(opts)
@@ -9894,6 +9835,56 @@ apiInstance.postConversationsEmailParticipantReplace(conversationId, participant
void (no response body)
+
+
+# void postConversationsEmailReconnect(conversationId)
+
+
+POST /api/v2/conversations/emails/{conversationId}/reconnect
+
+Reconnect the user to the most recently disconnected customer on a fully disconnected email conversation
+
+Requires ANY permissions:
+
+* conversation:communication:reconnect
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.ConversationsApi();
+
+let conversationId = "conversationId_example"; // String | conversationId
+
+apiInstance.postConversationsEmailReconnect(conversationId)
+ .then(() => {
+ console.log('postConversationsEmailReconnect returned successfully.');
+ })
+ .catch((err) => {
+ console.log('There was a failure calling postConversationsEmailReconnect');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **conversationId** | **String** | conversationId | |
+{: class="table table-striped"}
+
+### Return type
+
+void (no response body)
+
# EmailConversation postConversationsEmails(body)
diff --git a/build/docs/GroupsApi.md b/build/docs/GroupsApi.md
index c845c25b..4c406d65 100644
--- a/build/docs/GroupsApi.md
+++ b/build/docs/GroupsApi.md
@@ -221,7 +221,7 @@ apiInstance.getFieldconfig(type)
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
- **type** | **String** | Field type |
**Values**: person, group, org, externalContact |
+ **type** | **String** | Field type |
**Values**: person, group, org |
{: class="table table-striped"}
### Return type
diff --git a/build/docs/JourneyApi.md b/build/docs/JourneyApi.md
index 6c81b499..30fa5eac 100644
--- a/build/docs/JourneyApi.md
+++ b/build/docs/JourneyApi.md
@@ -1900,7 +1900,7 @@ apiInstance.getJourneyViewVersionJobsLatest(viewId, journeyVersionId)
-# AddressableEntityListing getJourneyViews()
+# JourneyViewListing getJourneyViews()
GET /api/v2/journey/views
@@ -1943,7 +1943,7 @@ This endpoint does not need any parameter.
### Return type
-**AddressableEntityListing**
+**JourneyViewListing**
diff --git a/build/docs/KnowledgeApi.md b/build/docs/KnowledgeApi.md
index 5b700109..30fbad77 100644
--- a/build/docs/KnowledgeApi.md
+++ b/build/docs/KnowledgeApi.md
@@ -517,7 +517,7 @@ apiInstance.deleteKnowledgeKnowledgebaseLanguageCategory(categoryId, knowledgeBa
| ------------- | ------------- | ------------- | ------------- |
**categoryId** | **String** | Category ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
{: class="table table-striped"}
### Return type
@@ -572,7 +572,7 @@ apiInstance.deleteKnowledgeKnowledgebaseLanguageDocument(documentId, knowledgeBa
| ------------- | ------------- | ------------- | ------------- |
**documentId** | **String** | Document ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
{: class="table table-striped"}
### Return type
@@ -626,7 +626,7 @@ apiInstance.deleteKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId,
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**importId** | **String** | Import ID | |
{: class="table table-striped"}
@@ -1864,7 +1864,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageCategories(knowledgeBaseId, languag
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**before** | **String** | The cursor that points to the start of the set of entities that has been returned. | [optional] |
**after** | **String** | The cursor that points to the end of the set of entities that has been returned. | [optional] |
**limit** | **String** | Number of entities to return. Maximum of 200. Deprecated in favour of pageSize | [optional] |
@@ -1924,7 +1924,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageCategory(categoryId, knowledgeBaseI
| ------------- | ------------- | ------------- | ------------- |
**categoryId** | **String** | Category ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
{: class="table table-striped"}
### Return type
@@ -1979,7 +1979,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageDocument(documentId, knowledgeBaseI
| ------------- | ------------- | ------------- | ------------- |
**documentId** | **String** | Document ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
{: class="table table-striped"}
### Return type
@@ -2037,7 +2037,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageDocumentUpload(documentId, knowledg
| ------------- | ------------- | ------------- | ------------- |
**documentId** | **String** | Document ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**uploadId** | **String** | UploadId | |
{: class="table table-striped"}
@@ -2102,7 +2102,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId, language
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**before** | **String** | The cursor that points to the start of the set of entities that has been returned. | [optional] |
**after** | **String** | The cursor that points to the end of the set of entities that has been returned. | [optional] |
**limit** | **String** | Number of entities to return. Maximum of 200. Deprecated in favour of pageSize | [optional] |
@@ -2165,7 +2165,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId, la
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**importId** | **String** | Import ID | |
{: class="table table-striped"}
@@ -2220,7 +2220,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageTraining(knowledgeBaseId, languageC
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**trainingId** | **String** | Training ID | |
{: class="table table-striped"}
@@ -2281,7 +2281,7 @@ apiInstance.getKnowledgeKnowledgebaseLanguageTrainings(knowledgeBaseId, language
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**before** | **String** | The cursor that points to the start of the set of entities that has been returned. | [optional] |
**after** | **String** | The cursor that points to the end of the set of entities that has been returned. | [optional] |
**limit** | **String** | Number of entities to return. Maximum of 200. Deprecated in favour of pageSize | [optional] |
@@ -2329,7 +2329,8 @@ let opts = {
'userId': ["userId_example"], // [String] | If specified, retrieves operations associated with user ids, comma separated values expected.
'type': ["type_example"], // [String] | If specified, retrieves operations with specified operation type, comma separated values expected.
'status': ["status_example"], // [String] | If specified, retrieves operations with specified operation status, comma separated values expected.
- 'interval': "interval_example" // String | Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ 'interval': "interval_example", // String | Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ
+ 'sourceId': ["sourceId_example"] // [String] | If specified, retrieves operations associated with source ids, comma separated values expected.
};
apiInstance.getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts)
@@ -2355,6 +2356,7 @@ apiInstance.getKnowledgeKnowledgebaseOperations(knowledgeBaseId, opts)
**type** | **[String]** | If specified, retrieves operations with specified operation type, comma separated values expected. | [optional]
**Values**: Export, Import, Parse, Sync |
**status** | **[String]** | If specified, retrieves operations with specified operation status, comma separated values expected. | [optional] |
**interval** | **String** | Retrieves the operations modified in specified date and time range. If the after and before cursor parameters are within this interval, it would return valid data, otherwise it throws an error.The dates in the interval are represented in ISO-8601 format: YYYY-MM-DDThh:mm:ssZ/YYYY-MM-DDThh:mm:ssZ | [optional] |
+ **sourceId** | **[String]** | If specified, retrieves operations associated with source ids, comma separated values expected. | [optional] |
{: class="table table-striped"}
### Return type
@@ -2763,7 +2765,7 @@ apiInstance.getKnowledgeKnowledgebases(opts)
**limit** | **String** | Number of entities to return. Maximum of 100. Deprecated in favour of pageSize | [optional] |
**pageSize** | **String** | Number of entities to return. Maximum of 100. | [optional] |
**name** | **String** | Filter by Name. | [optional] |
- **coreLanguage** | **String** | Filter by core language. | [optional]
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **coreLanguage** | **String** | Filter by core language. | [optional]
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**published** | **Boolean** | Filter by published status. | [optional] |
**sortBy** | **String** | Sort by. | [optional]
**Values**: Name, Date |
**sortOrder** | **String** | Sort Order. | [optional]
**Values**: ASC, ascending, DESC, descending |
@@ -3251,7 +3253,7 @@ apiInstance.patchKnowledgeKnowledgebaseLanguageCategory(categoryId, knowledgeBas
| ------------- | ------------- | ------------- | ------------- |
**categoryId** | **String** | Category ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -3308,7 +3310,7 @@ apiInstance.patchKnowledgeKnowledgebaseLanguageDocument(documentId, knowledgeBas
| ------------- | ------------- | ------------- | ------------- |
**documentId** | **String** | Document ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -3363,7 +3365,7 @@ apiInstance.patchKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId, langua
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -3420,7 +3422,7 @@ apiInstance.patchKnowledgeKnowledgebaseLanguageDocumentsImport(knowledgeBaseId,
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**importId** | **String** | Import ID | |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -4849,7 +4851,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageCategories(knowledgeBaseId, langua
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -4908,7 +4910,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageDocumentUploads(documentId, knowle
| ------------- | ------------- | ------------- | ------------- |
**documentId** | **String** | Document ID | |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -4963,7 +4965,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageDocuments(knowledgeBaseId, languag
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -5018,7 +5020,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageDocumentsImports(knowledgeBaseId,
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**body** | **Object** | | |
{: class="table table-striped"}
@@ -5073,7 +5075,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageTrainingPromote(knowledgeBaseId, l
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
**trainingId** | **String** | Training ID | |
{: class="table table-striped"}
@@ -5127,7 +5129,7 @@ apiInstance.postKnowledgeKnowledgebaseLanguageTrainings(knowledgeBaseId, languag
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
**knowledgeBaseId** | **String** | Knowledge base ID | |
- **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL |
+ **languageCode** | **String** | Language code, format: iso2-LOCALE |
**Values**: en-US, en-UK, en-AU, en-CA, en-HK, en-IN, en-IE, en-NZ, en-PH, en-SG, en-ZA, de-DE, de-AT, de-CH, es-AR, es-CO, es-MX, es-US, es-ES, fr-FR, fr-BE, fr-CA, fr-CH, pt-BR, pt-PT, nl-NL, nl-BE, it-IT, ca-ES, tr-TR, sv-SE, fi-FI, nb-NO, da-DK, ja-JP, ar-AE, zh-CN, zh-TW, zh-HK, ko-KR, pl-PL, hi-IN, th-TH, hu-HU, vi-VN, uk-UA |
{: class="table table-striped"}
### Return type
diff --git a/build/docs/LearningApi.md b/build/docs/LearningApi.md
index b6a46b0d..244fef6f 100644
--- a/build/docs/LearningApi.md
+++ b/build/docs/LearningApi.md
@@ -10,17 +10,21 @@ All URIs are relative to *https://api.mypurecloud.com*
[**deleteLearningAssignment**](LearningApi.html#deleteLearningAssignment) | **DELETE** /api/v2/learning/assignments/{assignmentId} | Delete a learning assignment
[**deleteLearningModule**](LearningApi.html#deleteLearningModule) | **DELETE** /api/v2/learning/modules/{moduleId} | Delete a learning module
[**getLearningAssignment**](LearningApi.html#getLearningAssignment) | **GET** /api/v2/learning/assignments/{assignmentId} | Get Learning Assignment
+[**getLearningAssignmentStep**](LearningApi.html#getLearningAssignmentStep) | **GET** /api/v2/learning/assignments/{assignmentId}/steps/{stepId} | Get Learning Assignment Step
[**getLearningAssignments**](LearningApi.html#getLearningAssignments) | **GET** /api/v2/learning/assignments | List of Learning module Assignments
[**getLearningAssignmentsMe**](LearningApi.html#getLearningAssignmentsMe) | **GET** /api/v2/learning/assignments/me | List of Learning Assignments assigned to current user
[**getLearningModule**](LearningApi.html#getLearningModule) | **GET** /api/v2/learning/modules/{moduleId} | Get a learning module
[**getLearningModuleJob**](LearningApi.html#getLearningModuleJob) | **GET** /api/v2/learning/modules/{moduleId}/jobs/{jobId} | Get a specific Learning Module job status
+[**getLearningModulePreview**](LearningApi.html#getLearningModulePreview) | **GET** /api/v2/learning/modules/{moduleId}/preview | Get a learning module preview
[**getLearningModuleRule**](LearningApi.html#getLearningModuleRule) | **GET** /api/v2/learning/modules/{moduleId}/rule | Get a learning module rule
[**getLearningModuleVersion**](LearningApi.html#getLearningModuleVersion) | **GET** /api/v2/learning/modules/{moduleId}/versions/{versionId} | Get specific version of a published module
[**getLearningModules**](LearningApi.html#getLearningModules) | **GET** /api/v2/learning/modules | Get all learning modules of an organization
[**getLearningModulesAssignments**](LearningApi.html#getLearningModulesAssignments) | **GET** /api/v2/learning/modules/assignments | Get all learning modules of an organization including assignments for a specific user
[**getLearningModulesCoverartCoverArtId**](LearningApi.html#getLearningModulesCoverartCoverArtId) | **GET** /api/v2/learning/modules/coverart/{coverArtId} | Get a specific Learning Module cover art using ID
+[**getLearningScormScormId**](LearningApi.html#getLearningScormScormId) | **GET** /api/v2/learning/scorm/{scormId} | Get Learning SCORM Result
[**patchLearningAssignment**](LearningApi.html#patchLearningAssignment) | **PATCH** /api/v2/learning/assignments/{assignmentId} | Update Learning Assignment
[**patchLearningAssignmentReschedule**](LearningApi.html#patchLearningAssignmentReschedule) | **PATCH** /api/v2/learning/assignments/{assignmentId}/reschedule | Reschedule Learning Assignment
+[**patchLearningAssignmentStep**](LearningApi.html#patchLearningAssignmentStep) | **PATCH** /api/v2/learning/assignments/{assignmentId}/steps/{stepId} | Update Learning Assignment Step
[**patchLearningModuleUserAssignments**](LearningApi.html#patchLearningModuleUserAssignments) | **PATCH** /api/v2/learning/modules/{moduleId}/users/{userId}/assignments | Update an external assignment for a specific user
[**postLearningAssessmentsScoring**](LearningApi.html#postLearningAssessmentsScoring) | **POST** /api/v2/learning/assessments/scoring | Score learning assessment for preview
[**postLearningAssignmentReassign**](LearningApi.html#postLearningAssignmentReassign) | **POST** /api/v2/learning/assignments/{assignmentId}/reassign | Reassign Learning Assignment
@@ -34,7 +38,9 @@ All URIs are relative to *https://api.mypurecloud.com*
[**postLearningModules**](LearningApi.html#postLearningModules) | **POST** /api/v2/learning/modules | Create a new learning module
[**postLearningRulesQuery**](LearningApi.html#postLearningRulesQuery) | **POST** /api/v2/learning/rules/query | Get users for learning module rule
[**postLearningScheduleslotsQuery**](LearningApi.html#postLearningScheduleslotsQuery) | **POST** /api/v2/learning/scheduleslots/query | Get list of possible slots where a learning activity can be scheduled.
+[**postLearningScorm**](LearningApi.html#postLearningScorm) | **POST** /api/v2/learning/scorm | Create a SCORM package upload request
[**putLearningModule**](LearningApi.html#putLearningModule) | **PUT** /api/v2/learning/modules/{moduleId} | Update a learning module
+[**putLearningModulePreview**](LearningApi.html#putLearningModulePreview) | **PUT** /api/v2/learning/modules/{moduleId}/preview | Update a learning module preview
[**putLearningModuleRule**](LearningApi.html#putLearningModuleRule) | **PUT** /api/v2/learning/modules/{moduleId}/rule | Update a learning module rule
{: class="table table-striped"}
@@ -196,6 +202,66 @@ apiInstance.getLearningAssignment(assignmentId, opts)
**LearningAssignment**
+
+
+# LearningAssignmentStep getLearningAssignmentStep(assignmentId, stepId, opts)
+
+
+GET /api/v2/learning/assignments/{assignmentId}/steps/{stepId}
+
+Get Learning Assignment Step
+
+Permission not required if you are the assigned user of the learning assignment
+
+Requires ANY permissions:
+
+* learning:assignment:viewOwn
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let assignmentId = "assignmentId_example"; // String | The ID of Learning Assignment
+let stepId = "stepId_example"; // String | The ID of Learning Assignment Step
+let opts = {
+ 'shareableContentObjectId': "shareableContentObjectId_example", // String | The ID of SCO to load
+ 'expand': ["expand_example"] // [String] | Fields to expand in response
+};
+
+apiInstance.getLearningAssignmentStep(assignmentId, stepId, opts)
+ .then((data) => {
+ console.log(`getLearningAssignmentStep success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getLearningAssignmentStep');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **assignmentId** | **String** | The ID of Learning Assignment | |
+ **stepId** | **String** | The ID of Learning Assignment Step | |
+ **shareableContentObjectId** | **String** | The ID of SCO to load | [optional] |
+ **expand** | **[String]** | Fields to expand in response | [optional]
**Values**: moduleStep |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningAssignmentStep**
+
# LearningAssignmentsDomainEntity getLearningAssignments(opts)
@@ -460,6 +526,56 @@ apiInstance.getLearningModuleJob(moduleId, jobId)
**LearningModuleJobResponse**
+
+
+# LearningModulePreviewGetResponse getLearningModulePreview(moduleId)
+
+
+GET /api/v2/learning/modules/{moduleId}/preview
+
+Get a learning module preview
+
+Requires ANY permissions:
+
+* learning:module:preview
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let moduleId = "moduleId_example"; // String | The ID of the learning module
+
+apiInstance.getLearningModulePreview(moduleId)
+ .then((data) => {
+ console.log(`getLearningModulePreview success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getLearningModulePreview');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **moduleId** | **String** | The ID of the learning module | |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningModulePreviewGetResponse**
+
# LearningModuleRule getLearningModuleRule(moduleId)
@@ -753,6 +869,56 @@ apiInstance.getLearningModulesCoverartCoverArtId(coverArtId)
**LearningModuleCoverArtResponse**
+
+
+# LearningScormResponse getLearningScormScormId(scormId)
+
+
+GET /api/v2/learning/scorm/{scormId}
+
+Get Learning SCORM Result
+
+Requires ANY permissions:
+
+* learning:scorm:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let scormId = "scormId_example"; // String | The ID of the SCORM package
+
+apiInstance.getLearningScormScormId(scormId)
+ .then((data) => {
+ console.log(`getLearningScormScormId success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getLearningScormScormId');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **scormId** | **String** | The ID of the SCORM package | |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningScormResponse**
+
# LearningAssignment patchLearningAssignment(assignmentId, opts)
@@ -859,6 +1025,64 @@ apiInstance.patchLearningAssignmentReschedule(assignmentId, opts)
**LearningAssignment**
+
+
+# LearningAssignmentStep patchLearningAssignmentStep(assignmentId, stepId, opts)
+
+
+PATCH /api/v2/learning/assignments/{assignmentId}/steps/{stepId}
+
+Update Learning Assignment Step
+
+Permission not required if you are the assigned user of the learning assignment
+
+Requires ANY permissions:
+
+* learning:assignment:editOwn
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let assignmentId = "assignmentId_example"; // String | The ID of Learning Assignment
+let stepId = "stepId_example"; // String | The ID of Learning Assignment Step
+let opts = {
+ 'body': {} // Object | The Learning Assignment Step to be updated
+};
+
+apiInstance.patchLearningAssignmentStep(assignmentId, stepId, opts)
+ .then((data) => {
+ console.log(`patchLearningAssignmentStep success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling patchLearningAssignmentStep');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **assignmentId** | **String** | The ID of Learning Assignment | |
+ **stepId** | **String** | The ID of Learning Assignment Step | |
+ **body** | **Object** | The Learning Assignment Step to be updated | [optional] |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningAssignmentStep**
+
# LearningAssignment patchLearningModuleUserAssignments(moduleId, userId, body)
@@ -1541,6 +1765,58 @@ apiInstance.postLearningScheduleslotsQuery(body)
**LearningScheduleSlotsQueryResponse**
+
+
+# LearningScormUploadResponse postLearningScorm(opts)
+
+
+POST /api/v2/learning/scorm
+
+Create a SCORM package upload request
+
+Requires ANY permissions:
+
+* learning:scorm:add
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let opts = {
+ 'body': {} // Object | The SCORM package to be uploaded
+};
+
+apiInstance.postLearningScorm(opts)
+ .then((data) => {
+ console.log(`postLearningScorm success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling postLearningScorm');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **body** | **Object** | The SCORM package to be uploaded | [optional] |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningScormUploadResponse**
+
# LearningModule putLearningModule(moduleId, body)
@@ -1595,6 +1871,60 @@ apiInstance.putLearningModule(moduleId, body)
**LearningModule**
+
+
+# LearningModulePreviewUpdateResponse putLearningModulePreview(moduleId, body)
+
+
+PUT /api/v2/learning/modules/{moduleId}/preview
+
+Update a learning module preview
+
+This will update a learning module preview
+
+Requires ANY permissions:
+
+* learning:module:preview
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.LearningApi();
+
+let moduleId = "moduleId_example"; // String | The ID of the learning module
+let body = {}; // Object | The learning module to be updated
+
+apiInstance.putLearningModulePreview(moduleId, body)
+ .then((data) => {
+ console.log(`putLearningModulePreview success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling putLearningModulePreview');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **moduleId** | **String** | The ID of the learning module | |
+ **body** | **Object** | The learning module to be updated | |
+{: class="table table-striped"}
+
+### Return type
+
+**LearningModulePreviewUpdateResponse**
+
# LearningModuleRule putLearningModuleRule(moduleId, body)
diff --git a/build/docs/OrganizationApi.md b/build/docs/OrganizationApi.md
index c233dd9e..fc3a9206 100644
--- a/build/docs/OrganizationApi.md
+++ b/build/docs/OrganizationApi.md
@@ -70,7 +70,7 @@ apiInstance.getFieldconfig(type)
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
- **type** | **String** | Field type |
**Values**: person, group, org, externalContact |
+ **type** | **String** | Field type |
**Values**: person, group, org |
{: class="table table-striped"}
### Return type
diff --git a/build/docs/RoutingApi.md b/build/docs/RoutingApi.md
index 4c5d7d4a..739e1df4 100644
--- a/build/docs/RoutingApi.md
+++ b/build/docs/RoutingApi.md
@@ -1017,8 +1017,6 @@ DELETE /api/v2/routing/utilization/labels/{labelId}
Delete a utilization label
-deleteRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:manage
@@ -4049,8 +4047,6 @@ GET /api/v2/routing/utilization/labels/{labelId}
Get details about this utilization label
-getRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:view
@@ -4101,8 +4097,6 @@ GET /api/v2/routing/utilization/labels/{labelId}/agents
Get list of agent ids associated with a utilization label
-getRoutingUtilizationLabelAgents is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:view
@@ -4153,8 +4147,6 @@ GET /api/v2/routing/utilization/labels
Get list of utilization labels
-getRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:view
@@ -6837,8 +6829,6 @@ POST /api/v2/routing/utilization/labels
Create a utilization label
-postRoutingUtilizationLabels is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:manage
@@ -7558,8 +7548,6 @@ PUT /api/v2/routing/utilization/labels/{labelId}
Update a utilization label
-putRoutingUtilizationLabel is a preview method and is subject to both breaking and non-breaking changes at any time without notice
-
Requires ALL permissions:
* routing:utilization:manage
diff --git a/build/docs/SpeechTextAnalyticsApi.md b/build/docs/SpeechTextAnalyticsApi.md
index 17228052..1203ba5a 100644
--- a/build/docs/SpeechTextAnalyticsApi.md
+++ b/build/docs/SpeechTextAnalyticsApi.md
@@ -7,12 +7,16 @@ All URIs are relative to *https://api.mypurecloud.com*
| Method | HTTP request | Description |
| ------------- | ------------- | ------------- |
+[**deleteSpeechandtextanalyticsCategory**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsCategory) | **DELETE** /api/v2/speechandtextanalytics/categories/{categoryId} | Delete a Speech and Text Analytics category by ID
[**deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId) | **DELETE** /api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId} | Delete a Speech and Text Analytics DictionaryFeedback by Id
[**deleteSpeechandtextanalyticsProgram**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsProgram) | **DELETE** /api/v2/speechandtextanalytics/programs/{programId} | Delete a Speech and Text Analytics program by id
[**deleteSpeechandtextanalyticsSentimentfeedback**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsSentimentfeedback) | **DELETE** /api/v2/speechandtextanalytics/sentimentfeedback | Delete All Speech and Text Analytics SentimentFeedback
[**deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId) | **DELETE** /api/v2/speechandtextanalytics/sentimentfeedback/{sentimentFeedbackId} | Delete a Speech and Text Analytics SentimentFeedback by Id
[**deleteSpeechandtextanalyticsTopic**](SpeechTextAnalyticsApi.html#deleteSpeechandtextanalyticsTopic) | **DELETE** /api/v2/speechandtextanalytics/topics/{topicId} | Delete a Speech and Text Analytics topic by id
+[**getSpeechandtextanalyticsCategories**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsCategories) | **GET** /api/v2/speechandtextanalytics/categories | Get the list of Speech and Text Analytics categories
+[**getSpeechandtextanalyticsCategory**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsCategory) | **GET** /api/v2/speechandtextanalytics/categories/{categoryId} | Get a Speech and Text Analytics Category by ID
[**getSpeechandtextanalyticsConversation**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsConversation) | **GET** /api/v2/speechandtextanalytics/conversations/{conversationId} | Get Speech and Text Analytics for a specific conversation
+[**getSpeechandtextanalyticsConversationCategories**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsConversationCategories) | **GET** /api/v2/speechandtextanalytics/conversations/{conversationId}/categories | Get the list of detected Speech and Text Analytics categories of conversation
[**getSpeechandtextanalyticsConversationCommunicationTranscripturl**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsConversationCommunicationTranscripturl) | **GET** /api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturl | Get the pre-signed S3 URL for the transcript of a specific communication of a conversation
[**getSpeechandtextanalyticsConversationCommunicationTranscripturls**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsConversationCommunicationTranscripturls) | **GET** /api/v2/speechandtextanalytics/conversations/{conversationId}/communications/{communicationId}/transcripturls | Get the list of pre-signed S3 URL for the transcripts of a specific communication of a conversation
[**getSpeechandtextanalyticsDictionaryfeedback**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsDictionaryfeedback) | **GET** /api/v2/speechandtextanalytics/dictionaryfeedback | Get the list of Speech and Text Analytics dictionary feedbacks
@@ -36,6 +40,7 @@ All URIs are relative to *https://api.mypurecloud.com*
[**getSpeechandtextanalyticsTopicsGeneralStatus**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsTopicsGeneralStatus) | **GET** /api/v2/speechandtextanalytics/topics/general/status | Get the list of general topics from the org and the system with their current status
[**getSpeechandtextanalyticsTopicsPublishjob**](SpeechTextAnalyticsApi.html#getSpeechandtextanalyticsTopicsPublishjob) | **GET** /api/v2/speechandtextanalytics/topics/publishjobs/{jobId} | Get a Speech and Text Analytics publish topics job by id
[**patchSpeechandtextanalyticsSettings**](SpeechTextAnalyticsApi.html#patchSpeechandtextanalyticsSettings) | **PATCH** /api/v2/speechandtextanalytics/settings | Patch Speech And Text Analytics Settings
+[**postSpeechandtextanalyticsCategories**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsCategories) | **POST** /api/v2/speechandtextanalytics/categories | Create new Speech and Text Analytics category
[**postSpeechandtextanalyticsDictionaryfeedback**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsDictionaryfeedback) | **POST** /api/v2/speechandtextanalytics/dictionaryfeedback | Create a Speech and Text Analytics DictionaryFeedback
[**postSpeechandtextanalyticsPrograms**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsPrograms) | **POST** /api/v2/speechandtextanalytics/programs | Create new Speech and Text Analytics program
[**postSpeechandtextanalyticsProgramsGeneralJobs**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsProgramsGeneralJobs) | **POST** /api/v2/speechandtextanalytics/programs/general/jobs | Create new Speech and Text Analytics general program job
@@ -44,6 +49,7 @@ All URIs are relative to *https://api.mypurecloud.com*
[**postSpeechandtextanalyticsTopics**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsTopics) | **POST** /api/v2/speechandtextanalytics/topics | Create new Speech and Text Analytics topic
[**postSpeechandtextanalyticsTopicsPublishjobs**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsTopicsPublishjobs) | **POST** /api/v2/speechandtextanalytics/topics/publishjobs | Create new Speech and Text Analytics publish topics job
[**postSpeechandtextanalyticsTranscriptsSearch**](SpeechTextAnalyticsApi.html#postSpeechandtextanalyticsTranscriptsSearch) | **POST** /api/v2/speechandtextanalytics/transcripts/search | Search resources.
+[**putSpeechandtextanalyticsCategory**](SpeechTextAnalyticsApi.html#putSpeechandtextanalyticsCategory) | **PUT** /api/v2/speechandtextanalytics/categories/{categoryId} | Update a Speech and Text Analytics category by ID
[**putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId**](SpeechTextAnalyticsApi.html#putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId) | **PUT** /api/v2/speechandtextanalytics/dictionaryfeedback/{dictionaryFeedbackId} | Update existing Speech and Text Analytics dictionary feedback by id
[**putSpeechandtextanalyticsProgram**](SpeechTextAnalyticsApi.html#putSpeechandtextanalyticsProgram) | **PUT** /api/v2/speechandtextanalytics/programs/{programId} | Update existing Speech and Text Analytics program
[**putSpeechandtextanalyticsProgramMappings**](SpeechTextAnalyticsApi.html#putSpeechandtextanalyticsProgramMappings) | **PUT** /api/v2/speechandtextanalytics/programs/{programId}/mappings | Set Speech and Text Analytics program mappings to queues and flows
@@ -52,6 +58,56 @@ All URIs are relative to *https://api.mypurecloud.com*
[**putSpeechandtextanalyticsTopic**](SpeechTextAnalyticsApi.html#putSpeechandtextanalyticsTopic) | **PUT** /api/v2/speechandtextanalytics/topics/{topicId} | Update existing Speech and Text Analytics topic
{: class="table table-striped"}
+
+
+# void deleteSpeechandtextanalyticsCategory(categoryId)
+
+
+DELETE /api/v2/speechandtextanalytics/categories/{categoryId}
+
+Delete a Speech and Text Analytics category by ID
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:category:delete
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let categoryId = "categoryId_example"; // String | The id of the category
+
+apiInstance.deleteSpeechandtextanalyticsCategory(categoryId)
+ .then(() => {
+ console.log('deleteSpeechandtextanalyticsCategory returned successfully.');
+ })
+ .catch((err) => {
+ console.log('There was a failure calling deleteSpeechandtextanalyticsCategory');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **categoryId** | **String** | The id of the category | |
+{: class="table table-striped"}
+
+### Return type
+
+void (no response body)
+
# void deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId)
@@ -301,6 +357,118 @@ apiInstance.deleteSpeechandtextanalyticsTopic(topicId)
void (no response body)
+
+
+# CategoriesEntityListing getSpeechandtextanalyticsCategories(opts)
+
+
+GET /api/v2/speechandtextanalytics/categories
+
+Get the list of Speech and Text Analytics categories
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:category:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let opts = {
+ 'pageSize': 25, // Number | The page size for the listing. The max that will be returned is 50.
+ 'pageNumber': 1, // Number | The page number for the listing
+ 'name': "name_example", // String | The category name filter applied to the listing
+ 'sortOrder': "asc", // String | The sort order for the listing
+ 'sortBy': "name", // String | The field to sort by for the listing
+ 'ids': ["ids_example"] // [String] | Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed.
+};
+
+apiInstance.getSpeechandtextanalyticsCategories(opts)
+ .then((data) => {
+ console.log(`getSpeechandtextanalyticsCategories success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getSpeechandtextanalyticsCategories');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **pageSize** | **Number** | The page size for the listing. The max that will be returned is 50. | [optional] [default to 25] |
+ **pageNumber** | **Number** | The page number for the listing | [optional] [default to 1] |
+ **name** | **String** | The category name filter applied to the listing | [optional] |
+ **sortOrder** | **String** | The sort order for the listing | [optional] [default to asc]
**Values**: asc, desc |
+ **sortBy** | **String** | The field to sort by for the listing | [optional] [default to name]
**Values**: name, description |
+ **ids** | **[String]** | Comma separated Category IDs to filter by. Cannot be used with other filters. Maximum of 50 IDs allowed. | [optional] |
+{: class="table table-striped"}
+
+### Return type
+
+**CategoriesEntityListing**
+
+
+
+# StaCategory getSpeechandtextanalyticsCategory(categoryId)
+
+
+GET /api/v2/speechandtextanalytics/categories/{categoryId}
+
+Get a Speech and Text Analytics Category by ID
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:category:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let categoryId = "categoryId_example"; // String | The id of the category
+
+apiInstance.getSpeechandtextanalyticsCategory(categoryId)
+ .then((data) => {
+ console.log(`getSpeechandtextanalyticsCategory success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getSpeechandtextanalyticsCategory');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **categoryId** | **String** | The id of the category | |
+{: class="table table-striped"}
+
+### Return type
+
+**StaCategory**
+
# ConversationMetrics getSpeechandtextanalyticsConversation(conversationId)
@@ -352,6 +520,62 @@ apiInstance.getSpeechandtextanalyticsConversation(conversationId)
**ConversationMetrics**
+
+
+# ConversationCategoriesEntityListing getSpeechandtextanalyticsConversationCategories(conversationId, opts)
+
+
+GET /api/v2/speechandtextanalytics/conversations/{conversationId}/categories
+
+Get the list of detected Speech and Text Analytics categories of conversation
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:data:view
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let conversationId = "conversationId_example"; // String | The id of the conversation
+let opts = {
+ 'pageSize': 25, // Number | The page size for the listing. The max that will be returned is 50.
+ 'pageNumber': 1 // Number | The page number for the listing
+};
+
+apiInstance.getSpeechandtextanalyticsConversationCategories(conversationId, opts)
+ .then((data) => {
+ console.log(`getSpeechandtextanalyticsConversationCategories success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling getSpeechandtextanalyticsConversationCategories');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **conversationId** | **String** | The id of the conversation | |
+ **pageSize** | **Number** | The page size for the listing. The max that will be returned is 50. | [optional] [default to 25] |
+ **pageNumber** | **Number** | The page number for the listing | [optional] [default to 1] |
+{: class="table table-striped"}
+
+### Return type
+
+**ConversationCategoriesEntityListing**
+
# TranscriptUrl getSpeechandtextanalyticsConversationCommunicationTranscripturl(conversationId, communicationId)
@@ -1527,6 +1751,56 @@ apiInstance.patchSpeechandtextanalyticsSettings(body)
**SpeechTextAnalyticsSettingsResponse**
+
+
+# StaCategory postSpeechandtextanalyticsCategories(body)
+
+
+POST /api/v2/speechandtextanalytics/categories
+
+Create new Speech and Text Analytics category
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:category:add
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let body = {}; // Object | The category to create
+
+apiInstance.postSpeechandtextanalyticsCategories(body)
+ .then((data) => {
+ console.log(`postSpeechandtextanalyticsCategories success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling postSpeechandtextanalyticsCategories');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **body** | **Object** | The category to create | |
+{: class="table table-striped"}
+
+### Return type
+
+**StaCategory**
+
# DictionaryFeedback postSpeechandtextanalyticsDictionaryfeedback(body)
@@ -1931,6 +2205,58 @@ apiInstance.postSpeechandtextanalyticsTranscriptsSearch(body)
**JsonSearchResponse**
+
+
+# StaCategory putSpeechandtextanalyticsCategory(categoryId, body)
+
+
+PUT /api/v2/speechandtextanalytics/categories/{categoryId}
+
+Update a Speech and Text Analytics category by ID
+
+Requires ALL permissions:
+
+* speechAndTextAnalytics:category:edit
+
+### Example Usage
+
+```{"language":"javascript"}
+// Browser
+const platformClient = require('platformClient');
+// Node
+const platformClient = require('purecloud-platform-client-v2');
+
+// Manually set auth token or use loginImplicitGrant(...) or loginClientCredentialsGrant(...) or loginPKCEGrant(...)
+platformClient.ApiClient.instance.setAccessToken(yourAccessToken);
+
+let apiInstance = new platformClient.SpeechTextAnalyticsApi();
+
+let categoryId = "categoryId_example"; // String | The id of the category
+let body = {}; // Object | The updated category
+
+apiInstance.putSpeechandtextanalyticsCategory(categoryId, body)
+ .then((data) => {
+ console.log(`putSpeechandtextanalyticsCategory success! data: ${JSON.stringify(data, null, 2)}`);
+ })
+ .catch((err) => {
+ console.log('There was a failure calling putSpeechandtextanalyticsCategory');
+ console.error(err);
+ });
+```
+
+### Parameters
+
+
+| Name | Type | Description | Notes |
+| ------------- | ------------- | ------------- | ------------- |
+ **categoryId** | **String** | The id of the category | |
+ **body** | **Object** | The updated category | |
+{: class="table table-striped"}
+
+### Return type
+
+**StaCategory**
+
# DictionaryFeedback putSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId, opts)
diff --git a/build/docs/UsersApi.md b/build/docs/UsersApi.md
index 3175a8d7..dc23bebf 100644
--- a/build/docs/UsersApi.md
+++ b/build/docs/UsersApi.md
@@ -1134,7 +1134,7 @@ apiInstance.getFieldconfig(type)
| Name | Type | Description | Notes |
| ------------- | ------------- | ------------- | ------------- |
- **type** | **String** | Field type |
**Values**: person, group, org, externalContact |
+ **type** | **String** | Field type |
**Values**: person, group, org |
{: class="table table-striped"}
### Return type
diff --git a/build/docs/index.md b/build/docs/index.md
index 393b58f4..69171925 100644
--- a/build/docs/index.md
+++ b/build/docs/index.md
@@ -31,7 +31,7 @@ For direct use in a browser script:
```html
-
+
diff --git a/build/docs/releaseNotes.md b/build/docs/releaseNotes.md
index 3e5be0ee..5a276863 100644
--- a/build/docs/releaseNotes.md
+++ b/build/docs/releaseNotes.md
@@ -1,241 +1,520 @@
-Platform API version: 8117
+Platform API version: 8165
-# Major Changes (19 changes)
+# Major Changes (10 changes)
-**/api/v2/conversations/messaging/integrations/line/{integrationId}** (1 change)
+**/api/v2/conversations/messaging/stickers/{messengerType}** (1 change)
-* Path /api/v2/conversations/messaging/integrations/line/{integrationId} was removed
+* Path /api/v2/conversations/messaging/stickers/{messengerType} was removed
-**/api/v2/conversations/messaging/integrations/line** (1 change)
+**GET /api/v2/journey/views** (1 change)
-* Path /api/v2/conversations/messaging/integrations/line was removed
+* Response 200 type was changed from AddressableEntityListing to JourneyViewListing
-**/api/v2/conversations/messaging/integrations/twitter/{integrationId}** (1 change)
+**GET /api/v2/knowledge/knowledgebases/{knowledgeBaseId}/operations** (1 change)
-* Path /api/v2/conversations/messaging/integrations/twitter/{integrationId} was removed
+* Parameter sourceId was added
-**/api/v2/conversations/messaging/integrations/twitter** (1 change)
+**MessagingSticker** (1 change)
-* Path /api/v2/conversations/messaging/integrations/twitter was removed
+* Model MessagingSticker was removed
-**GET /api/v2/externalcontacts/organizations/{externalOrganizationId}/relationships** (1 change)
+**MessagingStickerEntityListing** (1 change)
-* Parameter expand was changed from string to array
+* Model MessagingStickerEntityListing was removed
-**GET /api/v2/externalcontacts/organizations/{externalOrganizationId}** (1 change)
+**AddressableEntityListing** (1 change)
-* Parameter expand was changed from string to array
+* Model AddressableEntityListing was removed
-**GET /api/v2/externalcontacts/relationships/{relationshipId}** (1 change)
+**FieldConfig** (1 change)
-* Parameter expand was changed from string to array
+* Enum value externalContact was removed from property entityType
-**ConditionalGroupRoutingCondition** (1 change)
+**KeyPerformanceIndicator** (1 change)
-* Model ConditionalGroupRoutingCondition was removed
+* Enum value NumberOfTransfers was removed from property kpiType
-**LineIntegration** (1 change)
+**EngineIntegration** (1 change)
-* Model LineIntegration was removed
+* Property name was removed
-**LineIntegrationRequest** (1 change)
+**FieldConfigs** (1 change)
-* Model LineIntegrationRequest was removed
+* Property externalContact was removed
-**LineIntegrationEntityListing** (1 change)
-* Model LineIntegrationEntityListing was removed
+# Minor Changes (178 changes)
-**TwitterIntegration** (1 change)
+**/api/v2/analytics/reporting/settings/dashboards/query** (1 change)
-* Model TwitterIntegration was removed
+* Operation get was added. Summary: Get list of dashboard configurations
-**TwitterIntegrationRequest** (1 change)
+**/api/v2/conversations/emails/{conversationId}/reconnect** (2 changes)
-* Model TwitterIntegrationRequest was removed
+* Path was added
+* Operation POST was added
-**TwitterIntegrationEntityListing** (1 change)
+**/api/v2/speechandtextanalytics/categories** (3 changes)
-* Model TwitterIntegrationEntityListing was removed
+* Path was added
+* Operation GET was added
+* Operation POST was added
-**GenericActionEvent** (1 change)
+**/api/v2/speechandtextanalytics/categories/{categoryId}** (4 changes)
-* Model GenericActionEvent was removed
+* Path was added
+* Operation GET was added
+* Operation PUT was added
+* Operation DELETE was added
-**GenericEventAction** (1 change)
+**/api/v2/speechandtextanalytics/conversations/{conversationId}/categories** (2 changes)
-* Model GenericEventAction was removed
+* Path was added
+* Operation GET was added
-**PhoneStatus** (1 change)
+**GET /api/v2/speechandtextanalytics/topics/general/status** (1 change)
-* Property name was removed
+* Response 405 was added
-**WfmUserEntityListing** (1 change)
+**/api/v2/learning/assignments/{assignmentId}/steps/{stepId}** (3 changes)
-* Property entities was changed from User[] to UserReference[]
+* Path was added
+* Operation GET was added
+* Operation PATCH was added
-**Event** (1 change)
+**/api/v2/learning/modules/{moduleId}/preview** (3 changes)
-* Property genericActionEvent was removed
+* Path was added
+* Operation GET was added
+* Operation PUT was added
+**/api/v2/learning/scorm/{scormId}** (2 changes)
-# Minor Changes (45 changes)
+* Path was added
+* Operation GET was added
-**/api/v2/audits/query/realtime/related** (2 changes)
+**/api/v2/learning/scorm** (2 changes)
* Path was added
* Operation POST was added
-**/api/v2/outbound/campaigns/{campaignId}/linedistribution** (2 changes)
+**POST /api/v2/taskmanagement/workitems/{workitemId}/terminate** (1 change)
+
+* Response 409 was added
+
+**/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}** (2 changes)
* Path was added
* Operation GET was added
-**/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/update** (2 changes)
+**/api/v2/analytics/agentcopilots/aggregates/jobs/{jobId}/results** (2 changes)
* Path was added
-* Operation POST was added
+* Operation GET was added
-**/api/v2/outbound/contactlists/{contactListId}/contacts/bulk/remove** (2 changes)
+**/api/v2/analytics/agentcopilots/aggregates/query** (2 changes)
* Path was added
* Operation POST was added
-**/api/v2/outbound/contactlists/{contactListId}/contacts/search** (2 changes)
+**/api/v2/analytics/agentcopilots/aggregates/jobs** (2 changes)
* Path was added
* Operation POST was added
-**ConversationAggregateQueryPredicate** (1 change)
+**BotAggregationQuery** (2 changes)
+
+* Enum value oBotSessionCollection was added to property metrics
+* Enum value oBotSessionCollectionSelfServed was added to property metrics
+
+**BotAggregationView** (2 changes)
+
+* Enum value oBotSessionCollection was added to property target
+* Enum value oBotSessionCollectionSelfServed was added to property target
+
+**AnalyticsSession** (2 changes)
+
+* Optional property detectedSpeechEnd was added
+* Optional property detectedSpeechStart was added
+
+**SegmentDetailQueryPredicate** (2 changes)
+
+* Enum value detectedSpeechEnd was added to property dimension
+* Enum value detectedSpeechStart was added to property dimension
+
+**DashboardConfiguration** (2 changes)
+
+* Optional property shared was added
+* Optional property dashboardsSharedWith was added
+
+**DashboardsSharedWith** (1 change)
+
+* Model was added
+
+**ViewFilter** (15 changes)
+
+* Optional property agentTalkDurationMilliseconds was added
+* Optional property customerTalkDurationMilliseconds was added
+* Optional property overtalkDurationMilliseconds was added
+* Optional property silenceDurationMilliseconds was added
+* Optional property acdDurationMilliseconds was added
+* Optional property ivrDurationMilliseconds was added
+* Optional property otherDurationMilliseconds was added
+* Optional property agentTalkPercentage was added
+* Optional property customerTalkPercentage was added
+* Optional property overtalkPercentage was added
+* Optional property silencePercentage was added
+* Optional property acdPercentage was added
+* Optional property ivrPercentage was added
+* Optional property otherPercentage was added
+* Optional property overtalkInstances was added
+
+**KnowledgeBaseReference** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**Limit** (1 change)
+
+* Enum value social.media was added to property namespace
+
+**ContactIdentifier** (1 change)
+
+* Enum value ExternalId was added to property type
+
+**ConversationMessageMetadataEvent** (1 change)
+
+* Enum value Video was added to property eventType
+
+**CreateCallRequest** (1 change)
+
+* Optional property attributes was added
+
+**ConversationEventVideo** (1 change)
+
+* Model was added
+
+**ConversationMessageEvent** (2 changes)
+
+* Enum value Video was added to property eventType
+* Optional property video was added
+
+**KnowledgeBase** (5 changes)
+
+* Enum value hi-IN was added to property coreLanguage
+* Enum value th-TH was added to property coreLanguage
+* Enum value hu-HU was added to property coreLanguage
+* Enum value vi-VN was added to property coreLanguage
+* Enum value uk-UA was added to property coreLanguage
+
+**KnowledgeCategory** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**KnowledgeSearchDocumentV1** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**KnowledgeExtendedCategory** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**KnowledgeImport** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**KnowledgeDocument** (5 changes)
+
+* Enum value hi-IN was added to property languageCode
+* Enum value th-TH was added to property languageCode
+* Enum value hu-HU was added to property languageCode
+* Enum value vi-VN was added to property languageCode
+* Enum value uk-UA was added to property languageCode
+
+**KnowledgeBaseCreateRequest** (5 changes)
+
+* Enum value hi-IN was added to property coreLanguage
+* Enum value th-TH was added to property coreLanguage
+* Enum value hu-HU was added to property coreLanguage
+* Enum value vi-VN was added to property coreLanguage
+* Enum value uk-UA was added to property coreLanguage
+
+**KnowledgeOperationSource** (1 change)
+
+* Model was added
+
+**KnowledgeDocumentResponse** (2 changes)
+
+* Optional property source was added
+* Optional property readonly was added
+
+**KnowledgeExportJobDocumentsFilter** (1 change)
+
+* Optional property sourceId was added
+
+**KnowledgeExportJobResponse** (1 change)
+
+* Optional property source was added
-* Enum value videoPresent was added to property dimension
+**KnowledgeExportJobRequest** (1 change)
-**ConversationAggregationQuery** (1 change)
+* Optional property sourceId was added
-* Enum value videoPresent was added to property groupBy
+**KnowledgeSearchDocumentResponse** (2 changes)
-**FlowAggregateQueryPredicate** (1 change)
+* Optional property source was added
+* Optional property readonly was added
-* Enum value videoPresent was added to property dimension
+**ApprovalNamespace** (1 change)
-**FlowAggregationQuery** (1 change)
+* Enum value social.media was added to property namespace
-* Enum value videoPresent was added to property groupBy
+**LimitChangeRequestDetails** (1 change)
-**ReportingTurn** (1 change)
+* Enum value social.media was added to property namespace
-* Optional property knowledgeBaseEvents was added
+**StatusChange** (1 change)
-**ReportingTurnKnowledgeEvents** (1 change)
+* Enum value social.media was added to property namespace
+
+**RecordingMessagingMessage** (4 changes)
+
+* Optional property purpose was added
+* Optional property participantId was added
+* Optional property queue was added
+* Optional property workflow was added
+
+**UserQueue** (1 change)
+
+* id is no longer readonly
+
+**UtilizationResponse** (1 change)
+
+* Optional property labelUtilizations was added
+
+**UtilizationRequest** (1 change)
+
+* Optional property labelUtilizations was added
+
+**AgentMaxUtilizationResponse** (1 change)
+
+* Optional property labelUtilizations was added
+
+**CategoriesEntityListing** (1 change)
* Model was added
-**ReportingTurnKnowledgeFeedbackEvent** (1 change)
+**InfixOperator** (1 change)
* Model was added
-**ReportingTurnKnowledgeSearchEvent** (1 change)
+**Operand** (1 change)
* Model was added
-**ConversationProperties** (1 change)
+**OperandPosition** (1 change)
-* Optional property isScreenMonitored was added
+* Model was added
-**ViewFilter** (2 changes)
+**OperatorPosition** (1 change)
-* Optional property isScreenRecorded was added
-* Optional property screenMonitorUserIds was added
+* Model was added
-**AuditRealtimeRelatedResultsResponse** (1 change)
+**StaCategory** (1 change)
* Model was added
-**AuditRealtimeRelatedRequest** (1 change)
+**Term** (1 change)
* Model was added
-**AiAnswer** (1 change)
+**CategoryRequest** (1 change)
* Model was added
-**AiScoring** (1 change)
+**EngineIntegration** (1 change)
+
+* id is no longer readonly
+
+**ConversationCategoriesEntityListing** (1 change)
* Model was added
-**Campaign** (1 change)
+**ConversationCategory** (1 change)
+
+* Model was added
-* Optional property dynamicLineBalancingSettings was added
+**VoicemailSearchCriteria** (1 change)
-**CampaignOutboundLinesAllocation** (1 change)
+* Enum value DATE_RANGE was added to property type
+
+**CobrowseSettings** (1 change)
+
+* Optional property pauseCriteria was added
+
+**LearningAssignment** (5 changes)
+
+* Optional property assessmentPercentageScore was added
+* Optional property assessmentCompletionPercentage was added
+* Optional property completionPercentage was added
+* Optional property steps was added
+* Optional property nextStep was added
+
+**LearningModule** (2 changes)
+
+* Optional property enforceContentOrder was added
+* Optional property reviewAssessmentResults was added
+
+**ReviewAssessmentResults** (2 changes)
+
+* Optional property byAssignees was added
+* Optional property byViewers was added
+
+**LearningModulePreviewGetResponse** (1 change)
* Model was added
-**CampaignOutboundLinesDistribution** (1 change)
+**LearningModulePreviewGetResponseAssignment** (1 change)
* Model was added
-**CampaignOutboundLinesReservation** (1 change)
+**LearningModulePreviewGetResponseStep** (1 change)
* Model was added
-**CampaignStats** (1 change)
+**LearningModulePreviewGetScoStructure** (1 change)
-* Optional property linesUtilization was added
+* Model was added
+
+**LearningModuleRequest** (2 changes)
+
+* Optional property enforceContentOrder was added
+* Optional property reviewAssessmentResults was added
-**ContactsBulkOperationJob** (1 change)
+**LearningModulePreviewUpdateResponse** (1 change)
* Model was added
-**ContactBulkEditRequest** (1 change)
+**LearningModulePreviewUpdateResponseAssignment** (1 change)
* Model was added
-**ContactBulkSearchParameters** (1 change)
+**LearningModulePreviewUpdateResponseCurrentStep** (1 change)
* Model was added
-**ContactListingResponse** (1 change)
+**LearningModulePreviewUpdateScoStructure** (1 change)
* Model was added
-**ContactListingRequest** (1 change)
+**LearningModulePreviewUpdateStep** (1 change)
* Model was added
-**EventMessage** (2 changes)
+**LearningModulePreviewUpdateRequest** (1 change)
-* Enum value ACTION_EXECUTION_FAILED was added to property code
-* Enum value ACTION_EXECUTION_FAILED_INVALID_PARAMETER was added to property code
+* Model was added
-**FlowPathsFlowDetails** (3 changes)
+**LearningModulePreviewUpdateRequestCurrentStep** (1 change)
-* Enum value InboundShortMessage was added to property type
-* Enum value InboundEmail was added to property type
-* Enum value OutboundCall was added to property type
+* Model was added
-**IpAddressRange** (1 change)
+**AssignedLearningModule** (2 changes)
-* Enum value open-messaging was added to property service
+* Optional property enforceContentOrder was added
+* Optional property reviewAssessmentResults was added
-**Library** (1 change)
+**LearningScormResponse** (1 change)
-* version is no longer readonly
+* Model was added
-**PhoneStatus** (1 change)
+**LearningScormUploadResponse** (1 change)
-* id is no longer readonly
+* Model was added
+
+**LearningScormUploadRequest** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregateDataContainer** (1 change)
+
+* Model was added
+
+**AgentCopilotAsyncAggregateQueryResponse** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregateQueryResponse** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregateQueryClause** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregateQueryFilter** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregateQueryPredicate** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregationQuery** (1 change)
+
+* Model was added
+
+**AgentCopilotAggregationView** (1 change)
+
+* Model was added
+
+**AgentCopilotAsyncAggregationQuery** (1 change)
+
+* Model was added
+
+**BotAsyncAggregationQuery** (2 changes)
+
+* Enum value oBotSessionCollection was added to property metrics
+* Enum value oBotSessionCollectionSelfServed was added to property metrics
+
+**JourneyViewListing** (1 change)
+
+* Model was added
+
+**OperationResponse** (1 change)
+
+* Optional property source was added
-**ConversationAsyncAggregationQuery** (1 change)
+**WorktypeDelta** (1 change)
-* Enum value videoPresent was added to property groupBy
+* Optional property serviceLevelTarget was added
-**FlowAsyncAggregationQuery** (1 change)
-* Enum value videoPresent was added to property groupBy
+# Point Changes (2 changes)
+**POST /api/v2/analytics/ratelimits/aggregates/query** (2 changes)
-# Point Changes (0 changes)
+* Description was changed
+* Summary was changed
diff --git a/build/index.d.ts b/build/index.d.ts
index 0d529576..7a4d444d 100644
--- a/build/index.d.ts
+++ b/build/index.d.ts
@@ -146,6 +146,8 @@ declare class AnalyticsApi {
deleteAnalyticsUsersDetailsJob(jobId: string): Promise;
getAnalyticsActionsAggregatesJob(jobId: string): Promise;
getAnalyticsActionsAggregatesJobResults(jobId: string, opts?: AnalyticsApi.getAnalyticsActionsAggregatesJobResultsOptions): Promise;
+ getAnalyticsAgentcopilotsAggregatesJob(jobId: string): Promise;
+ getAnalyticsAgentcopilotsAggregatesJobResults(jobId: string, opts?: AnalyticsApi.getAnalyticsAgentcopilotsAggregatesJobResultsOptions): Promise;
getAnalyticsBotflowDivisionsReportingturns(botFlowId: string, opts?: AnalyticsApi.getAnalyticsBotflowDivisionsReportingturnsOptions): Promise;
getAnalyticsBotflowReportingturns(botFlowId: string, opts?: AnalyticsApi.getAnalyticsBotflowReportingturnsOptions): Promise;
getAnalyticsBotflowSessions(botFlowId: string, opts?: AnalyticsApi.getAnalyticsBotflowSessionsOptions): Promise;
@@ -174,6 +176,7 @@ declare class AnalyticsApi {
getAnalyticsReportingExports(opts?: AnalyticsApi.getAnalyticsReportingExportsOptions): Promise;
getAnalyticsReportingExportsMetadata(): Promise;
getAnalyticsReportingSettings(): Promise;
+ getAnalyticsReportingSettingsDashboardsQuery(dashboardType: string, dashboardAccessFilter: string, opts?: AnalyticsApi.getAnalyticsReportingSettingsDashboardsQueryOptions): Promise;
getAnalyticsReportingSettingsUserDashboards(userId: string, opts?: AnalyticsApi.getAnalyticsReportingSettingsUserDashboardsOptions): Promise;
getAnalyticsResolutionsAggregatesJob(jobId: string): Promise;
getAnalyticsResolutionsAggregatesJobResults(jobId: string, opts?: AnalyticsApi.getAnalyticsResolutionsAggregatesJobResultsOptions): Promise;
@@ -191,6 +194,8 @@ declare class AnalyticsApi {
patchAnalyticsReportingSettings(body: Models.AnalyticsReportingSettings): Promise;
postAnalyticsActionsAggregatesJobs(body: Models.ActionAsyncAggregationQuery): Promise;
postAnalyticsActionsAggregatesQuery(body: Models.ActionAggregationQuery): Promise;
+ postAnalyticsAgentcopilotsAggregatesJobs(body: Models.AgentCopilotAsyncAggregationQuery): Promise;
+ postAnalyticsAgentcopilotsAggregatesQuery(body: Models.AgentCopilotAggregationQuery): Promise;
postAnalyticsBotsAggregatesJobs(body: Models.BotAsyncAggregationQuery): Promise;
postAnalyticsBotsAggregatesQuery(body: Models.BotAggregationQuery): Promise;
postAnalyticsConversationDetailsProperties(conversationId: string, body: Models.PropertyIndexRequest): Promise;
@@ -240,6 +245,9 @@ declare namespace AnalyticsApi {
export interface getAnalyticsActionsAggregatesJobResultsOptions {
"cursor"?: string;
}
+ export interface getAnalyticsAgentcopilotsAggregatesJobResultsOptions {
+ "cursor"?: string;
+ }
export interface getAnalyticsBotflowDivisionsReportingturnsOptions {
"after"?: string;
"pageSize"?: string;
@@ -304,6 +312,11 @@ declare namespace AnalyticsApi {
"pageNumber"?: number;
"pageSize"?: number;
}
+ export interface getAnalyticsReportingSettingsDashboardsQueryOptions {
+ "sortBy"?: string;
+ "pageNumber"?: number;
+ "pageSize"?: number;
+ }
export interface getAnalyticsReportingSettingsUserDashboardsOptions {
"sortBy"?: string;
"pageNumber"?: number;
@@ -1436,7 +1449,6 @@ declare class ConversationsApi {
getConversationsMessagingSetting(messageSettingId: string): Promise;
getConversationsMessagingSettings(opts?: ConversationsApi.getConversationsMessagingSettingsOptions): Promise;
getConversationsMessagingSettingsDefault(): Promise;
- getConversationsMessagingSticker(messengerType: string, opts?: ConversationsApi.getConversationsMessagingStickerOptions): Promise;
getConversationsMessagingSupportedcontent(opts?: ConversationsApi.getConversationsMessagingSupportedcontentOptions): Promise;
getConversationsMessagingSupportedcontentDefault(): Promise;
getConversationsMessagingSupportedcontentSupportedContentId(supportedContentId: string): Promise;
@@ -1534,6 +1546,7 @@ declare class ConversationsApi {
postConversationsEmailMessagesDraftAttachmentsCopy(conversationId: string, body: Models.CopyAttachmentsRequest): Promise;
postConversationsEmailParticipantCommunicationWrapup(conversationId: string, participantId: string, communicationId: string, opts?: ConversationsApi.postConversationsEmailParticipantCommunicationWrapupOptions): Promise;
postConversationsEmailParticipantReplace(conversationId: string, participantId: string, body: Models.TransferRequest): Promise;
+ postConversationsEmailReconnect(conversationId: string): Promise;
postConversationsEmails(body: Models.CreateEmailRequest): Promise;
postConversationsEmailsAgentless(body: Models.AgentlessEmailSendRequestDto): Promise;
postConversationsFaxes(body: Models.FaxSendRequest): Promise;
@@ -1711,10 +1724,6 @@ declare namespace ConversationsApi {
"pageSize"?: number;
"pageNumber"?: number;
}
- export interface getConversationsMessagingStickerOptions {
- "pageSize"?: number;
- "pageNumber"?: number;
- }
export interface getConversationsMessagingSupportedcontentOptions {
"pageSize"?: number;
"pageNumber"?: number;
@@ -2732,7 +2741,7 @@ declare class JourneyApi {
getJourneyViewVersionJob(viewId: string, journeyVersionId: string, jobId: string): Promise;
getJourneyViewVersionJobResults(viewId: string, journeyViewVersion: string, jobId: string): Promise;
getJourneyViewVersionJobsLatest(viewId: string, journeyVersionId: string): Promise;
- getJourneyViews(): Promise;
+ getJourneyViews(): Promise;
getJourneyViewsEventdefinition(eventDefinitionId: string): Promise;
getJourneyViewsEventdefinitions(): Promise;
patchJourneyActionmap(actionMapId: string, opts?: JourneyApi.patchJourneyActionmapOptions): Promise;
@@ -3086,6 +3095,7 @@ declare namespace KnowledgeApi {
"type"?: Array;
"status"?: Array;
"interval"?: string;
+ "sourceId"?: Array;
}
export interface getKnowledgeKnowledgebaseParseJobOptions {
"expand"?: Array;
@@ -3280,17 +3290,21 @@ declare class LearningApi {
deleteLearningAssignment(assignmentId: string): Promise;
deleteLearningModule(moduleId: string): Promise;
getLearningAssignment(assignmentId: string, opts?: LearningApi.getLearningAssignmentOptions): Promise;
+ getLearningAssignmentStep(assignmentId: string, stepId: string, opts?: LearningApi.getLearningAssignmentStepOptions): Promise;
getLearningAssignments(opts?: LearningApi.getLearningAssignmentsOptions): Promise;
getLearningAssignmentsMe(opts?: LearningApi.getLearningAssignmentsMeOptions): Promise;
getLearningModule(moduleId: string, opts?: LearningApi.getLearningModuleOptions): Promise;
getLearningModuleJob(moduleId: string, jobId: string): Promise;
+ getLearningModulePreview(moduleId: string): Promise;
getLearningModuleRule(moduleId: string): Promise;
getLearningModuleVersion(moduleId: string, versionId: string, opts?: LearningApi.getLearningModuleVersionOptions): Promise;
getLearningModules(opts?: LearningApi.getLearningModulesOptions): Promise;
getLearningModulesAssignments(userIds: Array, opts?: LearningApi.getLearningModulesAssignmentsOptions): Promise;
getLearningModulesCoverartCoverArtId(coverArtId: string): Promise;
+ getLearningScormScormId(scormId: string): Promise;
patchLearningAssignment(assignmentId: string, opts?: LearningApi.patchLearningAssignmentOptions): Promise;
patchLearningAssignmentReschedule(assignmentId: string, opts?: LearningApi.patchLearningAssignmentRescheduleOptions): Promise;
+ patchLearningAssignmentStep(assignmentId: string, stepId: string, opts?: LearningApi.patchLearningAssignmentStepOptions): Promise;
patchLearningModuleUserAssignments(moduleId: string, userId: string, body: Models.LearningAssignmentExternalUpdate): Promise;
postLearningAssessmentsScoring(body: Models.LearningAssessmentScoringRequest): Promise;
postLearningAssignmentReassign(assignmentId: string): Promise;
@@ -3304,7 +3318,9 @@ declare class LearningApi {
postLearningModules(body: Models.LearningModuleRequest): Promise;
postLearningRulesQuery(pageSize: number, pageNumber: number, body: Models.LearningAssignmentUserQuery): Promise;
postLearningScheduleslotsQuery(body: Models.LearningScheduleSlotsQueryRequest): Promise;
+ postLearningScorm(opts?: LearningApi.postLearningScormOptions): Promise;
putLearningModule(moduleId: string, body: Models.LearningModuleRequest): Promise;
+ putLearningModulePreview(moduleId: string, body: Models.LearningModulePreviewUpdateRequest): Promise;
putLearningModuleRule(moduleId: string, body: Models.LearningModuleRule): Promise;
}
@@ -3312,6 +3328,10 @@ declare namespace LearningApi {
export interface getLearningAssignmentOptions {
"expand"?: Array;
}
+ export interface getLearningAssignmentStepOptions {
+ "shareableContentObjectId"?: string;
+ "expand"?: Array;
+ }
export interface getLearningAssignmentsOptions {
"moduleId"?: string;
"interval"?: string;
@@ -3378,6 +3398,9 @@ declare namespace LearningApi {
export interface patchLearningAssignmentRescheduleOptions {
"body"?: Models.LearningAssignmentReschedule;
}
+ export interface patchLearningAssignmentStepOptions {
+ "body"?: Models.LearningAssignmentStep;
+ }
export interface postLearningAssignmentsOptions {
"body"?: Models.LearningAssignmentCreate;
}
@@ -3390,6 +3413,9 @@ declare namespace LearningApi {
export interface postLearningModulePublishOptions {
"body"?: Models.LearningModulePublishRequest;
}
+ export interface postLearningScormOptions {
+ "body"?: Models.LearningScormUploadRequest;
+ }
}
declare class LicenseApi {
@@ -5443,12 +5469,16 @@ declare namespace SettingsApi {
}
declare class SpeechTextAnalyticsApi {
+ deleteSpeechandtextanalyticsCategory(categoryId: string): Promise;
deleteSpeechandtextanalyticsDictionaryfeedbackDictionaryFeedbackId(dictionaryFeedbackId: string): Promise;
deleteSpeechandtextanalyticsProgram(programId: string, opts?: SpeechTextAnalyticsApi.deleteSpeechandtextanalyticsProgramOptions): Promise;
deleteSpeechandtextanalyticsSentimentfeedback(): Promise;
deleteSpeechandtextanalyticsSentimentfeedbackSentimentFeedbackId(sentimentFeedbackId: string): Promise;
deleteSpeechandtextanalyticsTopic(topicId: string): Promise;
+ getSpeechandtextanalyticsCategories(opts?: SpeechTextAnalyticsApi.getSpeechandtextanalyticsCategoriesOptions): Promise;
+ getSpeechandtextanalyticsCategory(categoryId: string): Promise;
getSpeechandtextanalyticsConversation(conversationId: string): Promise;
+ getSpeechandtextanalyticsConversationCategories(conversationId: string, opts?: SpeechTextAnalyticsApi.getSpeechandtextanalyticsConversationCategoriesOptions): Promise;
getSpeechandtextanalyticsConversationCommunicationTranscripturl(conversationId: string, communicationId: string): Promise;
getSpeechandtextanalyticsConversationCommunicationTranscripturls(conversationId: string, communicationId: string): Promise