From 6b361ca6b7117ad35e1ac29bf3b476a249d0b508 Mon Sep 17 00:00:00 2001 From: PureCloud Jenkins Date: Tue, 30 Apr 2024 13:56:25 +0000 Subject: [PATCH] 192.2.0 --- README.md | 4 +- build/README.md | 4 +- .../dist/node/purecloud-platform-client-v2.js | 155 +++++----- .../web-amd/purecloud-platform-client-v2.js | 155 +++++----- .../purecloud-platform-client-v2.min.js | 2 +- build/dist/web-cjs/bundle.js | 154 +++++----- .../web-cjs/purecloud-platform-client-v2.js | 154 +++++----- .../purecloud-platform-client-v2.min.js | 2 +- build/docs/index.md | 4 +- build/docs/releaseNotes.md | 111 +------ build/package-lock.json | 274 +++++++++--------- build/package.json | 2 +- .../purecloud-platform-client-v2/ApiClient.js | 2 +- .../PureCloudRegionHosts.js | 3 + .../api/AlertingApi.js | 2 +- .../api/AnalyticsApi.js | 2 +- .../api/ArchitectApi.js | 2 +- .../api/AuditApi.js | 2 +- .../api/AuthorizationApi.js | 2 +- .../api/BillingApi.js | 2 +- .../api/CarrierServicesApi.js | 2 +- .../api/ChatApi.js | 2 +- .../api/CoachingApi.js | 2 +- .../api/ContentManagementApi.js | 2 +- .../api/ConversationsApi.js | 2 +- .../api/DataExtensionsApi.js | 2 +- .../api/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 | 2 +- .../api/LanguageUnderstandingApi.js | 2 +- .../api/LanguagesApi.js | 2 +- .../api/LearningApi.js | 2 +- .../api/LicenseApi.js | 2 +- .../api/LocationsApi.js | 2 +- .../api/LogCaptureApi.js | 2 +- .../api/MessagingApi.js | 2 +- .../api/MobileDevicesApi.js | 2 +- .../api/NotificationsApi.js | 2 +- .../api/OAuthApi.js | 2 +- .../api/ObjectsApi.js | 2 +- .../api/OperationalEventsApi.js | 2 +- .../api/OrganizationApi.js | 2 +- .../api/OrganizationAuthorizationApi.js | 2 +- .../api/OutboundApi.js | 2 +- .../api/PresenceApi.js | 2 +- .../api/ProcessAutomationApi.js | 2 +- .../api/QualityApi.js | 2 +- .../api/RecordingApi.js | 2 +- .../api/ResponseManagementApi.js | 2 +- .../api/RoutingApi.js | 2 +- .../api/SCIMApi.js | 2 +- .../api/ScreenRecordingApi.js | 2 +- .../api/ScriptsApi.js | 2 +- .../api/SearchApi.js | 2 +- .../api/SettingsApi.js | 2 +- .../api/SpeechTextAnalyticsApi.js | 2 +- .../api/StationsApi.js | 2 +- .../api/SuggestApi.js | 2 +- .../api/TaskManagementApi.js | 2 +- .../api/TeamsApi.js | 2 +- .../api/TelephonyApi.js | 2 +- .../api/TelephonyProvidersEdgeApi.js | 2 +- .../api/TextbotsApi.js | 2 +- .../api/TokensApi.js | 2 +- .../api/UploadsApi.js | 2 +- .../api/UsageApi.js | 2 +- .../api/UserRecordingsApi.js | 2 +- .../api/UsersApi.js | 2 +- .../api/UtilitiesApi.js | 2 +- .../api/VoicemailApi.js | 2 +- .../api/WebChatApi.js | 2 +- .../api/WebDeploymentsApi.js | 2 +- .../api/WebMessagingApi.js | 2 +- .../api/WidgetsApi.js | 2 +- .../api/WorkforceManagementApi.js | 2 +- .../src/purecloud-platform-client-v2/index.js | 2 +- releaseNotes.md | 111 +------ version.json | 6 +- 91 files changed, 542 insertions(+), 751 deletions(-) diff --git a/README.md b/README.md index 2cbe33a93..51713e7e0 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ For direct use in a browser script: ```html - + diff --git a/build/README.md b/build/README.md index 2cbe33a93..51713e7e0 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 8e4061dd3..8dcfcf59e 100644 --- a/build/dist/node/purecloud-platform-client-v2.js +++ b/build/dist/node/purecloud-platform-client-v2.js @@ -21,6 +21,9 @@ var PureCloudRegionHosts = { 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 logLevels = { @@ -402,7 +405,7 @@ class Configuration { /** * @module purecloud-platform-client-v2/ApiClient - * @version 192.1.0 + * @version 192.2.0 */ class ApiClient { /** @@ -1821,7 +1824,7 @@ class AlertingApi { /** * Alerting service. * @module purecloud-platform-client-v2/api/AlertingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -2482,7 +2485,7 @@ class AnalyticsApi { /** * Analytics service. * @module purecloud-platform-client-v2/api/AnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -5256,7 +5259,7 @@ class ArchitectApi { /** * Architect service. * @module purecloud-platform-client-v2/api/ArchitectApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -9402,7 +9405,7 @@ class AuditApi { /** * Audit service. * @module purecloud-platform-client-v2/api/AuditApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -9573,7 +9576,7 @@ class AuthorizationApi { /** * Authorization service. * @module purecloud-platform-client-v2/api/AuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10811,7 +10814,7 @@ class BillingApi { /** * Billing service. * @module purecloud-platform-client-v2/api/BillingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10891,7 +10894,7 @@ class CarrierServicesApi { /** * CarrierServices service. * @module purecloud-platform-client-v2/api/CarrierServicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10961,7 +10964,7 @@ class ChatApi { /** * Chat service. * @module purecloud-platform-client-v2/api/ChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -11850,7 +11853,7 @@ class CoachingApi { /** * Coaching service. * @module purecloud-platform-client-v2/api/CoachingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -12427,7 +12430,7 @@ class ContentManagementApi { /** * ContentManagement service. * @module purecloud-platform-client-v2/api/ContentManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -13509,7 +13512,7 @@ class ConversationsApi { /** * Conversations service. * @module purecloud-platform-client-v2/api/ConversationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20751,7 +20754,7 @@ class DataExtensionsApi { /** * DataExtensions service. * @module purecloud-platform-client-v2/api/DataExtensionsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20837,7 +20840,7 @@ class DownloadsApi { /** * Downloads service. * @module purecloud-platform-client-v2/api/DownloadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20889,7 +20892,7 @@ class EmailsApi { /** * Emails service. * @module purecloud-platform-client-v2/api/EmailsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20954,7 +20957,7 @@ class EventsApi { /** * Events service. * @module purecloud-platform-client-v2/api/EventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -21050,7 +21053,7 @@ class ExternalContactsApi { /** * ExternalContacts service. * @module purecloud-platform-client-v2/api/ExternalContactsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23008,7 +23011,7 @@ class FaxApi { /** * Fax service. * @module purecloud-platform-client-v2/api/FaxApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23223,7 +23226,7 @@ class FlowsApi { /** * Flows service. * @module purecloud-platform-client-v2/api/FlowsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23407,7 +23410,7 @@ class GamificationApi { /** * Gamification service. * @module purecloud-platform-client-v2/api/GamificationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25493,7 +25496,7 @@ class GeneralDataProtectionRegulationApi { /** * GeneralDataProtectionRegulation service. * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25623,7 +25626,7 @@ class GeolocationApi { /** * Geolocation service. * @module purecloud-platform-client-v2/api/GeolocationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25754,7 +25757,7 @@ class GreetingsApi { /** * Greetings service. * @module purecloud-platform-client-v2/api/GreetingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -26209,7 +26212,7 @@ class GroupsApi { /** * Groups service. * @module purecloud-platform-client-v2/api/GroupsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -26728,7 +26731,7 @@ class IdentityProviderApi { /** * IdentityProvider service. * @module purecloud-platform-client-v2/api/IdentityProviderApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -27589,7 +27592,7 @@ class InfrastructureAsCodeApi { /** * InfrastructureAsCode service. * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -27756,7 +27759,7 @@ class IntegrationsApi { /** * Integrations service. * @module purecloud-platform-client-v2/api/IntegrationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -30108,7 +30111,7 @@ class JourneyApi { /** * Journey service. * @module purecloud-platform-client-v2/api/JourneyApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -31697,7 +31700,7 @@ class KnowledgeApi { /** * Knowledge service. * @module purecloud-platform-client-v2/api/KnowledgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -34940,7 +34943,7 @@ class LanguageUnderstandingApi { /** * LanguageUnderstanding service. * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -35974,7 +35977,7 @@ class LanguagesApi { /** * Languages service. * @module purecloud-platform-client-v2/api/LanguagesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -36196,7 +36199,7 @@ class LearningApi { /** * Learning service. * @module purecloud-platform-client-v2/api/LearningApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37051,7 +37054,7 @@ class LicenseApi { /** * License service. * @module purecloud-platform-client-v2/api/LicenseApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37289,7 +37292,7 @@ class LocationsApi { /** * Locations service. * @module purecloud-platform-client-v2/api/LocationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37525,7 +37528,7 @@ class LogCaptureApi { /** * LogCapture service. * @module purecloud-platform-client-v2/api/LogCaptureApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37725,7 +37728,7 @@ class MessagingApi { /** * Messaging service. * @module purecloud-platform-client-v2/api/MessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38084,7 +38087,7 @@ class MobileDevicesApi { /** * MobileDevices service. * @module purecloud-platform-client-v2/api/MobileDevicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38235,7 +38238,7 @@ class NotificationsApi { /** * Notifications service. * @module purecloud-platform-client-v2/api/NotificationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38468,7 +38471,7 @@ class OAuthApi { /** * OAuth service. * @module purecloud-platform-client-v2/api/OAuthApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38834,7 +38837,7 @@ class ObjectsApi { /** * Objects service. * @module purecloud-platform-client-v2/api/ObjectsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39104,7 +39107,7 @@ class OperationalEventsApi { /** * OperationalEvents service. * @module purecloud-platform-client-v2/api/OperationalEventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39170,7 +39173,7 @@ class OrganizationApi { /** * Organization service. * @module purecloud-platform-client-v2/api/OrganizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39625,7 +39628,7 @@ class OrganizationAuthorizationApi { /** * OrganizationAuthorization service. * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -40972,7 +40975,7 @@ class OutboundApi { /** * Outbound service. * @module purecloud-platform-client-v2/api/OutboundApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -45214,7 +45217,7 @@ class PresenceApi { /** * Presence service. * @module purecloud-platform-client-v2/api/PresenceApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -45958,7 +45961,7 @@ class ProcessAutomationApi { /** * ProcessAutomation service. * @module purecloud-platform-client-v2/api/ProcessAutomationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -46197,7 +46200,7 @@ class QualityApi { /** * Quality service. * @module purecloud-platform-client-v2/api/QualityApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -47954,7 +47957,7 @@ class RecordingApi { /** * Recording service. * @module purecloud-platform-client-v2/api/RecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -49612,7 +49615,7 @@ class ResponseManagementApi { /** * ResponseManagement service. * @module purecloud-platform-client-v2/api/ResponseManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -50122,7 +50125,7 @@ class RoutingApi { /** * Routing service. * @module purecloud-platform-client-v2/api/RoutingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -54102,7 +54105,7 @@ class SCIMApi { /** * SCIM service. * @module purecloud-platform-client-v2/api/SCIMApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -54979,7 +54982,7 @@ class ScreenRecordingApi { /** * ScreenRecording service. * @module purecloud-platform-client-v2/api/ScreenRecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -55024,7 +55027,7 @@ class ScriptsApi { /** * Scripts service. * @module purecloud-platform-client-v2/api/ScriptsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -55468,7 +55471,7 @@ class SearchApi { /** * Search service. * @module purecloud-platform-client-v2/api/SearchApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -56157,7 +56160,7 @@ class SettingsApi { /** * Settings service. * @module purecloud-platform-client-v2/api/SettingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -56269,7 +56272,7 @@ class SpeechTextAnalyticsApi { /** * SpeechTextAnalytics service. * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57383,7 +57386,7 @@ class StationsApi { /** * Stations service. * @module purecloud-platform-client-v2/api/StationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57485,7 +57488,7 @@ class SuggestApi { /** * Suggest service. * @module purecloud-platform-client-v2/api/SuggestApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57624,7 +57627,7 @@ class TaskManagementApi { /** * TaskManagement service. * @module purecloud-platform-client-v2/api/TaskManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59009,7 +59012,7 @@ class TeamsApi { /** * Teams service. * @module purecloud-platform-client-v2/api/TeamsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59311,7 +59314,7 @@ class TelephonyApi { /** * Telephony service. * @module purecloud-platform-client-v2/api/TelephonyApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59493,7 +59496,7 @@ class TelephonyProvidersEdgeApi { /** * TelephonyProvidersEdge service. * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -62821,7 +62824,7 @@ class TextbotsApi { /** * Textbots service. * @module purecloud-platform-client-v2/api/TextbotsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -62949,7 +62952,7 @@ class TokensApi { /** * Tokens service. * @module purecloud-platform-client-v2/api/TokensApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63103,7 +63106,7 @@ class UploadsApi { /** * Uploads service. * @module purecloud-platform-client-v2/api/UploadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63372,7 +63375,7 @@ class UsageApi { /** * Usage service. * @module purecloud-platform-client-v2/api/UsageApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63587,7 +63590,7 @@ class UserRecordingsApi { /** * UserRecordings service. * @module purecloud-platform-client-v2/api/UserRecordingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63772,7 +63775,7 @@ class UsersApi { /** * Users service. * @module purecloud-platform-client-v2/api/UsersApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -66431,7 +66434,7 @@ class UtilitiesApi { /** * Utilities service. * @module purecloud-platform-client-v2/api/UtilitiesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -66542,7 +66545,7 @@ class VoicemailApi { /** * Voicemail service. * @module purecloud-platform-client-v2/api/VoicemailApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -67209,7 +67212,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-platform-client-v2/api/WebChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -67760,7 +67763,7 @@ class WebDeploymentsApi { /** * WebDeployments service. * @module purecloud-platform-client-v2/api/WebDeploymentsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68287,7 +68290,7 @@ class WebMessagingApi { /** * WebMessaging service. * @module purecloud-platform-client-v2/api/WebMessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68333,7 +68336,7 @@ class WidgetsApi { /** * Widgets service. * @module purecloud-platform-client-v2/api/WidgetsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68479,7 +68482,7 @@ class WorkforceManagementApi { /** * WorkforceManagement service. * @module purecloud-platform-client-v2/api/WorkforceManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -74390,7 +74393,7 @@ class WorkforceManagementApi { * *

* @module purecloud-platform-client-v2/index - * @version 192.1.0 + * @version 192.2.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 26e19f444..0a863961b 100644 --- a/build/dist/web-amd/purecloud-platform-client-v2.js +++ b/build/dist/web-amd/purecloud-platform-client-v2.js @@ -18,6 +18,9 @@ define(['axios', 'qs'], (function (axios, qs) { 'use strict'; 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 logLevels = { @@ -399,7 +402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * @module purecloud-platform-client-v2/ApiClient - * @version 192.1.0 + * @version 192.2.0 */ class ApiClient { /** @@ -1818,7 +1821,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Alerting service. * @module purecloud-platform-client-v2/api/AlertingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -2479,7 +2482,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Analytics service. * @module purecloud-platform-client-v2/api/AnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -5253,7 +5256,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Architect service. * @module purecloud-platform-client-v2/api/ArchitectApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -9399,7 +9402,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Audit service. * @module purecloud-platform-client-v2/api/AuditApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -9570,7 +9573,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Authorization service. * @module purecloud-platform-client-v2/api/AuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10808,7 +10811,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Billing service. * @module purecloud-platform-client-v2/api/BillingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10888,7 +10891,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * CarrierServices service. * @module purecloud-platform-client-v2/api/CarrierServicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -10958,7 +10961,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Chat service. * @module purecloud-platform-client-v2/api/ChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -11847,7 +11850,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Coaching service. * @module purecloud-platform-client-v2/api/CoachingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -12424,7 +12427,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * ContentManagement service. * @module purecloud-platform-client-v2/api/ContentManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -13506,7 +13509,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Conversations service. * @module purecloud-platform-client-v2/api/ConversationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20748,7 +20751,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * DataExtensions service. * @module purecloud-platform-client-v2/api/DataExtensionsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20834,7 +20837,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Downloads service. * @module purecloud-platform-client-v2/api/DownloadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20886,7 +20889,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Emails service. * @module purecloud-platform-client-v2/api/EmailsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -20951,7 +20954,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Events service. * @module purecloud-platform-client-v2/api/EventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -21047,7 +21050,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * ExternalContacts service. * @module purecloud-platform-client-v2/api/ExternalContactsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23005,7 +23008,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Fax service. * @module purecloud-platform-client-v2/api/FaxApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23220,7 +23223,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Flows service. * @module purecloud-platform-client-v2/api/FlowsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -23404,7 +23407,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Gamification service. * @module purecloud-platform-client-v2/api/GamificationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25490,7 +25493,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * GeneralDataProtectionRegulation service. * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25620,7 +25623,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Geolocation service. * @module purecloud-platform-client-v2/api/GeolocationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -25751,7 +25754,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Greetings service. * @module purecloud-platform-client-v2/api/GreetingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -26206,7 +26209,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Groups service. * @module purecloud-platform-client-v2/api/GroupsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -26725,7 +26728,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * IdentityProvider service. * @module purecloud-platform-client-v2/api/IdentityProviderApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -27586,7 +27589,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * InfrastructureAsCode service. * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -27753,7 +27756,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Integrations service. * @module purecloud-platform-client-v2/api/IntegrationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -30105,7 +30108,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Journey service. * @module purecloud-platform-client-v2/api/JourneyApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -31694,7 +31697,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Knowledge service. * @module purecloud-platform-client-v2/api/KnowledgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -34937,7 +34940,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * LanguageUnderstanding service. * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -35971,7 +35974,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Languages service. * @module purecloud-platform-client-v2/api/LanguagesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -36193,7 +36196,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Learning service. * @module purecloud-platform-client-v2/api/LearningApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37048,7 +37051,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * License service. * @module purecloud-platform-client-v2/api/LicenseApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37286,7 +37289,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Locations service. * @module purecloud-platform-client-v2/api/LocationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37522,7 +37525,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * LogCapture service. * @module purecloud-platform-client-v2/api/LogCaptureApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -37722,7 +37725,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Messaging service. * @module purecloud-platform-client-v2/api/MessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38081,7 +38084,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * MobileDevices service. * @module purecloud-platform-client-v2/api/MobileDevicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38232,7 +38235,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Notifications service. * @module purecloud-platform-client-v2/api/NotificationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38465,7 +38468,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * OAuth service. * @module purecloud-platform-client-v2/api/OAuthApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -38831,7 +38834,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Objects service. * @module purecloud-platform-client-v2/api/ObjectsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39101,7 +39104,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * OperationalEvents service. * @module purecloud-platform-client-v2/api/OperationalEventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39167,7 +39170,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Organization service. * @module purecloud-platform-client-v2/api/OrganizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -39622,7 +39625,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * OrganizationAuthorization service. * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -40969,7 +40972,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Outbound service. * @module purecloud-platform-client-v2/api/OutboundApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -45211,7 +45214,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Presence service. * @module purecloud-platform-client-v2/api/PresenceApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -45955,7 +45958,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * ProcessAutomation service. * @module purecloud-platform-client-v2/api/ProcessAutomationApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -46194,7 +46197,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Quality service. * @module purecloud-platform-client-v2/api/QualityApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -47951,7 +47954,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Recording service. * @module purecloud-platform-client-v2/api/RecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -49609,7 +49612,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * ResponseManagement service. * @module purecloud-platform-client-v2/api/ResponseManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -50119,7 +50122,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Routing service. * @module purecloud-platform-client-v2/api/RoutingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -54099,7 +54102,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * SCIM service. * @module purecloud-platform-client-v2/api/SCIMApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -54976,7 +54979,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * ScreenRecording service. * @module purecloud-platform-client-v2/api/ScreenRecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -55021,7 +55024,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Scripts service. * @module purecloud-platform-client-v2/api/ScriptsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -55465,7 +55468,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Search service. * @module purecloud-platform-client-v2/api/SearchApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -56154,7 +56157,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Settings service. * @module purecloud-platform-client-v2/api/SettingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -56266,7 +56269,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * SpeechTextAnalytics service. * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57380,7 +57383,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Stations service. * @module purecloud-platform-client-v2/api/StationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57482,7 +57485,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Suggest service. * @module purecloud-platform-client-v2/api/SuggestApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -57621,7 +57624,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * TaskManagement service. * @module purecloud-platform-client-v2/api/TaskManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59006,7 +59009,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Teams service. * @module purecloud-platform-client-v2/api/TeamsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59308,7 +59311,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Telephony service. * @module purecloud-platform-client-v2/api/TelephonyApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -59490,7 +59493,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * TelephonyProvidersEdge service. * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -62818,7 +62821,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Textbots service. * @module purecloud-platform-client-v2/api/TextbotsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -62946,7 +62949,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Tokens service. * @module purecloud-platform-client-v2/api/TokensApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63100,7 +63103,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Uploads service. * @module purecloud-platform-client-v2/api/UploadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63369,7 +63372,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Usage service. * @module purecloud-platform-client-v2/api/UsageApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63584,7 +63587,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * UserRecordings service. * @module purecloud-platform-client-v2/api/UserRecordingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -63769,7 +63772,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Users service. * @module purecloud-platform-client-v2/api/UsersApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -66428,7 +66431,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Utilities service. * @module purecloud-platform-client-v2/api/UtilitiesApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -66539,7 +66542,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Voicemail service. * @module purecloud-platform-client-v2/api/VoicemailApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -67206,7 +67209,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * WebChat service. * @module purecloud-platform-client-v2/api/WebChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -67757,7 +67760,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * WebDeployments service. * @module purecloud-platform-client-v2/api/WebDeploymentsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68284,7 +68287,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * WebMessaging service. * @module purecloud-platform-client-v2/api/WebMessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68330,7 +68333,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * Widgets service. * @module purecloud-platform-client-v2/api/WidgetsApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -68476,7 +68479,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form /** * WorkforceManagement service. * @module purecloud-platform-client-v2/api/WorkforceManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** @@ -74387,7 +74390,7 @@ ${this.formatValue('Status', statusCode)}${this.formatValue('Headers', this.form * *

* @module purecloud-platform-client-v2/index - * @version 192.1.0 + * @version 192.2.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 55a52b376..e19bcb0e7 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"};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 j=new FormData;j.set(A,f[A]),v.data=j}}else l&&(v.data=l);var b=h.jsonPreferredMime(u);b&&(v.headers.Accept=b);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"])}deleteAnalyticsReportingSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling deleteAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","DELETE",{scheduleId: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"])}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"])}getAnalyticsReportingMetadata(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/metadata","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,locale:e.locale},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingReportIdMetadata(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "reportId" when calling getAnalyticsReportingReportIdMetadata';return this.apiClient.callApi("/api/v2/analytics/reporting/{reportId}/metadata","GET",{reportId:e},{locale:i.locale},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingReportformats(){return this.apiClient.callApi("/api/v2/analytics/reporting/reportformats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistory';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history","GET",{scheduleId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistoryLatest(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryLatest';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistoryRunId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "runId" when calling getAnalyticsReportingScheduleHistoryRunId';if(void 0===i||null===i)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryRunId';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}","GET",{runId:e,scheduleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},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},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingTimeperiods(){return this.apiClient.callApi("/api/v2/analytics/reporting/timeperiods","GET",{},{},{},{},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"])}postAnalyticsReportingScheduleRunreport(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling postAnalyticsReportingScheduleRunreport';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/runreport","POST",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSchedules';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules","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"])}putAnalyticsReportingSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["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"])}}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"])}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"])}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 j{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"])}deleteConversationsMessagingIntegrationsLineIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{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"])}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}getConversationsMessagingIntegrationsLine(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line","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"])}getConversationsMessagingIntegrationsLineIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{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"])}getConversationsMessagingIntegrationsTwitter(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","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"])}getConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}postConversationsMessagingIntegrationsLine(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsLine';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line","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"])}postConversationsMessagingIntegrationsTwitter(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsTwitter';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","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"])}putConversationsMessagingIntegrationsLineIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIntegrationsLineIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{integrationId}","PUT",{integrationId: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 b{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:i.expand,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:i.expand,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:i.expand},{},{},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"])}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"])}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"])}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 je{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 be{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},{},{},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")},{},{},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=j,this.DataExtensionsApi=b,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=je,this.UserRecordingsApi=be,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.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 j=new FormData;j.set(A,f[A]),v.data=j}}else l&&(v.data=l);var b=h.jsonPreferredMime(u);b&&(v.headers.Accept=b);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"])}deleteAnalyticsReportingSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling deleteAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","DELETE",{scheduleId: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"])}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"])}getAnalyticsReportingMetadata(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/metadata","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize,locale:e.locale},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingReportIdMetadata(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "reportId" when calling getAnalyticsReportingReportIdMetadata';return this.apiClient.callApi("/api/v2/analytics/reporting/{reportId}/metadata","GET",{reportId:e},{locale:i.locale},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingReportformats(){return this.apiClient.callApi("/api/v2/analytics/reporting/reportformats","GET",{},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSchedule(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistory(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistory';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history","GET",{scheduleId:e},{pageNumber:i.pageNumber,pageSize:i.pageSize},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistoryLatest(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryLatest';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history/latest","GET",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingScheduleHistoryRunId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "runId" when calling getAnalyticsReportingScheduleHistoryRunId';if(void 0===i||null===i)throw'Missing the required parameter "scheduleId" when calling getAnalyticsReportingScheduleHistoryRunId';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/history/{runId}","GET",{runId:e,scheduleId:i},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingSchedules(e){return e=e||{},this.apiClient.callApi("/api/v2/analytics/reporting/schedules","GET",{},{pageNumber:e.pageNumber,pageSize:e.pageSize},{},{},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},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}getAnalyticsReportingTimeperiods(){return this.apiClient.callApi("/api/v2/analytics/reporting/timeperiods","GET",{},{},{},{},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"])}postAnalyticsReportingScheduleRunreport(e){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling postAnalyticsReportingScheduleRunreport';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}/runreport","POST",{scheduleId:e},{},{},{},null,["PureCloud OAuth"],["application/json"],["application/json"])}postAnalyticsReportingSchedules(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postAnalyticsReportingSchedules';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules","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"])}putAnalyticsReportingSchedule(e,i){if(void 0===e||null===e)throw'Missing the required parameter "scheduleId" when calling putAnalyticsReportingSchedule';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';return this.apiClient.callApi("/api/v2/analytics/reporting/schedules/{scheduleId}","PUT",{scheduleId:e},{},{},{},i,["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"])}}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"])}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"])}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 j{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"])}deleteConversationsMessagingIntegrationsLineIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{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"])}deleteConversationsMessagingIntegrationsTwitterIntegrationId(e){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling deleteConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}getConversationsMessagingIntegrationsLine(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line","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"])}getConversationsMessagingIntegrationsLineIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{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"])}getConversationsMessagingIntegrationsTwitter(e){return e=e||{},this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","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"])}getConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(i=i||{},void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling getConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}patchConversationsMessagingIntegrationsTwitterIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling patchConversationsMessagingIntegrationsTwitterIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter/{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"])}postConversationsMessagingIntegrationsLine(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsLine';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line","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"])}postConversationsMessagingIntegrationsTwitter(e){if(void 0===e||null===e)throw'Missing the required parameter "body" when calling postConversationsMessagingIntegrationsTwitter';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/twitter","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"])}putConversationsMessagingIntegrationsLineIntegrationId(e,i){if(void 0===e||null===e)throw'Missing the required parameter "integrationId" when calling putConversationsMessagingIntegrationsLineIntegrationId';if(void 0===i||null===i)throw'Missing the required parameter "body" when calling putConversationsMessagingIntegrationsLineIntegrationId';return this.apiClient.callApi("/api/v2/conversations/messaging/integrations/line/{integrationId}","PUT",{integrationId: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 b{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:i.expand,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:i.expand,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:i.expand},{},{},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"])}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"])}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"])}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 je{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 be{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},{},{},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")},{},{},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=j,this.DataExtensionsApi=b,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=je,this.UserRecordingsApi=be,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 873bc10b8..8b3425632 100644 --- a/build/dist/web-cjs/bundle.js +++ b/build/dist/web-cjs/bundle.js @@ -1,4 +1,4 @@ -'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders) +'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders) // if there are two placeholders, than the two characters before it // represent one byte // if there is only one, then the three characters before it represent 2 bytes @@ -847,7 +847,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 192.1.0 + * @version 192.2.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 @@ -1159,7 +1159,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AlertingApi. * @alias module:purecloud-platform-client-v2/api/AlertingApi @@ -1316,7 +1316,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AnalyticsApi. * @alias module:purecloud-platform-client-v2/api/AnalyticsApi @@ -1966,7 +1966,7 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/** * Architect service. * @module purecloud-platform-client-v2/api/ArchitectApi - * @version 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ArchitectApi. * @alias module:purecloud-platform-client-v2/api/ArchitectApi @@ -3082,7 +3082,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AuditApi. * @alias module:purecloud-platform-client-v2/api/AuditApi @@ -3124,7 +3124,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 postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AuthorizationApi. * @alias module:purecloud-platform-client-v2/api/AuthorizationApi @@ -3439,7 +3439,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new BillingApi. * @alias module:purecloud-platform-client-v2/api/BillingApi @@ -3463,7 +3463,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new CarrierServicesApi. * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi @@ -3483,7 +3483,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ChatApi. * @alias module:purecloud-platform-client-v2/api/ChatApi @@ -3698,7 +3698,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new CoachingApi. * @alias module:purecloud-platform-client-v2/api/CoachingApi @@ -3851,7 +3851,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ContentManagementApi. * @alias module:purecloud-platform-client-v2/api/ContentManagementApi @@ -4134,7 +4134,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ConversationsApi. * @alias module:purecloud-platform-client-v2/api/ConversationsApi @@ -5895,7 +5895,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new DataExtensionsApi. * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi @@ -5916,7 +5916,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new DownloadsApi. * @alias module:purecloud-platform-client-v2/api/DownloadsApi @@ -5935,7 +5935,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new EmailsApi. * @alias module:purecloud-platform-client-v2/api/EmailsApi @@ -5953,7 +5953,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new EventsApi. * @alias module:purecloud-platform-client-v2/api/EventsApi @@ -5978,7 +5978,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ExternalContactsApi. * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi @@ -6433,7 +6433,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new FaxApi. * @alias module:purecloud-platform-client-v2/api/FaxApi @@ -6482,7 +6482,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new FlowsApi. * @alias module:purecloud-platform-client-v2/api/FlowsApi @@ -6531,7 +6531,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GamificationApi. * @alias module:purecloud-platform-client-v2/api/GamificationApi @@ -7071,7 +7071,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GeneralDataProtectionRegulationApi. * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi @@ -7106,7 +7106,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GeolocationApi. * @alias module:purecloud-platform-client-v2/api/GeolocationApi @@ -7140,7 +7140,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GreetingsApi. * @alias module:purecloud-platform-client-v2/api/GreetingsApi @@ -7247,7 +7247,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GroupsApi. * @alias module:purecloud-platform-client-v2/api/GroupsApi @@ -7380,7 +7380,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new IdentityProviderApi. * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi @@ -7536,7 +7536,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new InfrastructureAsCodeApi. * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi @@ -7590,7 +7590,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new IntegrationsApi. * @alias module:purecloud-platform-client-v2/api/IntegrationsApi @@ -8201,7 +8201,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new JourneyApi. * @alias module:purecloud-platform-client-v2/api/JourneyApi @@ -8589,7 +8589,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new KnowledgeApi. * @alias module:purecloud-platform-client-v2/api/KnowledgeApi @@ -9501,7 +9501,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LanguageUnderstandingApi. * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi @@ -9761,7 +9761,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LanguagesApi. * @alias module:purecloud-platform-client-v2/api/LanguagesApi @@ -9816,7 +9816,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LearningApi. * @alias module:purecloud-platform-client-v2/api/LearningApi @@ -10045,7 +10045,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LicenseApi. * @alias module:purecloud-platform-client-v2/api/LicenseApi @@ -10099,7 +10099,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LocationsApi. * @alias module:purecloud-platform-client-v2/api/LocationsApi @@ -10158,7 +10158,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LogCaptureApi. * @alias module:purecloud-platform-client-v2/api/LogCaptureApi @@ -10208,7 +10208,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new MessagingApi. * @alias module:purecloud-platform-client-v2/api/MessagingApi @@ -10298,7 +10298,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new MobileDevicesApi. * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi @@ -10337,7 +10337,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new NotificationsApi. * @alias module:purecloud-platform-client-v2/api/NotificationsApi @@ -10394,7 +10394,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OAuthApi. * @alias module:purecloud-platform-client-v2/api/OAuthApi @@ -10479,7 +10479,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ObjectsApi. * @alias module:purecloud-platform-client-v2/api/ObjectsApi @@ -10550,7 +10550,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OperationalEventsApi. * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi @@ -10568,7 +10568,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OrganizationApi. * @alias module:purecloud-platform-client-v2/api/OrganizationApi @@ -10670,7 +10670,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OrganizationAuthorizationApi. * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi @@ -10993,7 +10993,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OutboundApi. * @alias module:purecloud-platform-client-v2/api/OutboundApi @@ -12032,7 +12032,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new PresenceApi. * @alias module:purecloud-platform-client-v2/api/PresenceApi @@ -12205,7 +12205,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ProcessAutomationApi. * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi @@ -12268,7 +12268,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new QualityApi. * @alias module:purecloud-platform-client-v2/api/QualityApi @@ -12739,7 +12739,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new RecordingApi. * @alias module:purecloud-platform-client-v2/api/RecordingApi @@ -13150,7 +13150,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ResponseManagementApi. * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi @@ -13271,7 +13271,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new RoutingApi. * @alias module:purecloud-platform-client-v2/api/RoutingApi @@ -14246,7 +14246,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SCIMApi. * @alias module:purecloud-platform-client-v2/api/SCIMApi @@ -14471,7 +14471,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ScreenRecordingApi. * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi @@ -14486,7 +14486,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ScriptsApi. * @alias module:purecloud-platform-client-v2/api/ScriptsApi @@ -14622,7 +14622,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SearchApi. * @alias module:purecloud-platform-client-v2/api/SearchApi @@ -14782,7 +14782,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SettingsApi. * @alias module:purecloud-platform-client-v2/api/SettingsApi @@ -14810,7 +14810,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SpeechTextAnalyticsApi. * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi @@ -15054,7 +15054,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new StationsApi. * @alias module:purecloud-platform-client-v2/api/StationsApi @@ -15086,7 +15086,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SuggestApi. * @alias module:purecloud-platform-client-v2/api/SuggestApi @@ -15126,7 +15126,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TaskManagementApi. * @alias module:purecloud-platform-client-v2/api/TaskManagementApi @@ -15492,7 +15492,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TeamsApi. * @alias module:purecloud-platform-client-v2/api/TeamsApi @@ -15571,7 +15571,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TelephonyApi. * @alias module:purecloud-platform-client-v2/api/TelephonyApi @@ -15618,7 +15618,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TelephonyProvidersEdgeApi. * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi @@ -16428,7 +16428,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TextbotsApi. * @alias module:purecloud-platform-client-v2/api/TextbotsApi @@ -16463,7 +16463,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TokensApi. * @alias module:purecloud-platform-client-v2/api/TokensApi @@ -16497,7 +16497,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UploadsApi. * @alias module:purecloud-platform-client-v2/api/UploadsApi @@ -16563,7 +16563,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UsageApi. * @alias module:purecloud-platform-client-v2/api/UsageApi @@ -16617,7 +16617,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UserRecordingsApi. * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi @@ -16666,7 +16666,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UsersApi. * @alias module:purecloud-platform-client-v2/api/UsersApi @@ -17329,7 +17329,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UtilitiesApi. * @alias module:purecloud-platform-client-v2/api/UtilitiesApi @@ -17356,7 +17356,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new VoicemailApi. * @alias module:purecloud-platform-client-v2/api/VoicemailApi @@ -17505,7 +17505,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebChatApi. * @alias module:purecloud-platform-client-v2/api/WebChatApi @@ -17640,7 +17640,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebDeploymentsApi. * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi @@ -17761,7 +17761,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebMessagingApi. * @alias module:purecloud-platform-client-v2/api/WebMessagingApi @@ -17777,7 +17777,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WidgetsApi. * @alias module:purecloud-platform-client-v2/api/WidgetsApi @@ -17812,7 +17812,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WorkforceManagementApi. * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi @@ -19290,7 +19290,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required * *

* @module purecloud-platform-client-v2/index - * @version 192.1.0 + * @version 192.2.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 2c343a15b..3f3baffd0 100644 --- a/build/dist/web-cjs/purecloud-platform-client-v2.js +++ b/build/dist/web-cjs/purecloud-platform-client-v2.js @@ -5197,7 +5197,7 @@ module.exports = function getSideChannel() { },{"call-bind/callBound":8,"es-errors/type":17,"get-intrinsic":21,"object-inspect":28}],"platformClient":[function(require,module,exports){ (function (global,Buffer){(function (){ -'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders) +'use strict';function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _toArray(arr){return _arrayWithHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableRest();}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i0){throw new Error('Invalid string. Length must be a multiple of 4');}// the number of equal signs (place holders) // if there are two placeholders, than the two characters before it // represent one byte // if there is only one, then the three characters before it represent 2 bytes @@ -6046,7 +6046,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 192.1.0 + * @version 192.2.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 @@ -6358,7 +6358,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AlertingApi. * @alias module:purecloud-platform-client-v2/api/AlertingApi @@ -6515,7 +6515,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AnalyticsApi. * @alias module:purecloud-platform-client-v2/api/AnalyticsApi @@ -7165,7 +7165,7 @@ if(scheduleId===undefined||scheduleId===null){throw'Missing the required paramet if(body===undefined||body===null){throw'Missing the required parameter "body" when calling putAnalyticsReportingSchedule';}return this.apiClient.callApi('/api/v2/analytics/reporting/schedules/{scheduleId}','PUT',{'scheduleId':scheduleId},{},{},{},body,['PureCloud OAuth'],['application/json'],['application/json']);}}]);}();var ArchitectApi=/*#__PURE__*/function(){/** * Architect service. * @module purecloud-platform-client-v2/api/ArchitectApi - * @version 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ArchitectApi. * @alias module:purecloud-platform-client-v2/api/ArchitectApi @@ -8281,7 +8281,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AuditApi. * @alias module:purecloud-platform-client-v2/api/AuditApi @@ -8323,7 +8323,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 postAuditsQueryRealtime';}return this.apiClient.callApi('/api/v2/audits/query/realtime','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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new AuthorizationApi. * @alias module:purecloud-platform-client-v2/api/AuthorizationApi @@ -8638,7 +8638,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new BillingApi. * @alias module:purecloud-platform-client-v2/api/BillingApi @@ -8662,7 +8662,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new CarrierServicesApi. * @alias module:purecloud-platform-client-v2/api/CarrierServicesApi @@ -8682,7 +8682,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ChatApi. * @alias module:purecloud-platform-client-v2/api/ChatApi @@ -8897,7 +8897,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new CoachingApi. * @alias module:purecloud-platform-client-v2/api/CoachingApi @@ -9050,7 +9050,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ContentManagementApi. * @alias module:purecloud-platform-client-v2/api/ContentManagementApi @@ -9333,7 +9333,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ConversationsApi. * @alias module:purecloud-platform-client-v2/api/ConversationsApi @@ -11094,7 +11094,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new DataExtensionsApi. * @alias module:purecloud-platform-client-v2/api/DataExtensionsApi @@ -11115,7 +11115,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new DownloadsApi. * @alias module:purecloud-platform-client-v2/api/DownloadsApi @@ -11134,7 +11134,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new EmailsApi. * @alias module:purecloud-platform-client-v2/api/EmailsApi @@ -11152,7 +11152,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new EventsApi. * @alias module:purecloud-platform-client-v2/api/EventsApi @@ -11177,7 +11177,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ExternalContactsApi. * @alias module:purecloud-platform-client-v2/api/ExternalContactsApi @@ -11632,7 +11632,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new FaxApi. * @alias module:purecloud-platform-client-v2/api/FaxApi @@ -11681,7 +11681,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new FlowsApi. * @alias module:purecloud-platform-client-v2/api/FlowsApi @@ -11730,7 +11730,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GamificationApi. * @alias module:purecloud-platform-client-v2/api/GamificationApi @@ -12270,7 +12270,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GeneralDataProtectionRegulationApi. * @alias module:purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi @@ -12305,7 +12305,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GeolocationApi. * @alias module:purecloud-platform-client-v2/api/GeolocationApi @@ -12339,7 +12339,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GreetingsApi. * @alias module:purecloud-platform-client-v2/api/GreetingsApi @@ -12446,7 +12446,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new GroupsApi. * @alias module:purecloud-platform-client-v2/api/GroupsApi @@ -12579,7 +12579,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new IdentityProviderApi. * @alias module:purecloud-platform-client-v2/api/IdentityProviderApi @@ -12735,7 +12735,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new InfrastructureAsCodeApi. * @alias module:purecloud-platform-client-v2/api/InfrastructureAsCodeApi @@ -12789,7 +12789,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new IntegrationsApi. * @alias module:purecloud-platform-client-v2/api/IntegrationsApi @@ -13400,7 +13400,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new JourneyApi. * @alias module:purecloud-platform-client-v2/api/JourneyApi @@ -13788,7 +13788,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new KnowledgeApi. * @alias module:purecloud-platform-client-v2/api/KnowledgeApi @@ -14700,7 +14700,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LanguageUnderstandingApi. * @alias module:purecloud-platform-client-v2/api/LanguageUnderstandingApi @@ -14960,7 +14960,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LanguagesApi. * @alias module:purecloud-platform-client-v2/api/LanguagesApi @@ -15015,7 +15015,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LearningApi. * @alias module:purecloud-platform-client-v2/api/LearningApi @@ -15244,7 +15244,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LicenseApi. * @alias module:purecloud-platform-client-v2/api/LicenseApi @@ -15298,7 +15298,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LocationsApi. * @alias module:purecloud-platform-client-v2/api/LocationsApi @@ -15357,7 +15357,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new LogCaptureApi. * @alias module:purecloud-platform-client-v2/api/LogCaptureApi @@ -15407,7 +15407,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new MessagingApi. * @alias module:purecloud-platform-client-v2/api/MessagingApi @@ -15497,7 +15497,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new MobileDevicesApi. * @alias module:purecloud-platform-client-v2/api/MobileDevicesApi @@ -15536,7 +15536,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new NotificationsApi. * @alias module:purecloud-platform-client-v2/api/NotificationsApi @@ -15593,7 +15593,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OAuthApi. * @alias module:purecloud-platform-client-v2/api/OAuthApi @@ -15678,7 +15678,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ObjectsApi. * @alias module:purecloud-platform-client-v2/api/ObjectsApi @@ -15749,7 +15749,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OperationalEventsApi. * @alias module:purecloud-platform-client-v2/api/OperationalEventsApi @@ -15767,7 +15767,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OrganizationApi. * @alias module:purecloud-platform-client-v2/api/OrganizationApi @@ -15869,7 +15869,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OrganizationAuthorizationApi. * @alias module:purecloud-platform-client-v2/api/OrganizationAuthorizationApi @@ -16192,7 +16192,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new OutboundApi. * @alias module:purecloud-platform-client-v2/api/OutboundApi @@ -17231,7 +17231,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new PresenceApi. * @alias module:purecloud-platform-client-v2/api/PresenceApi @@ -17404,7 +17404,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ProcessAutomationApi. * @alias module:purecloud-platform-client-v2/api/ProcessAutomationApi @@ -17467,7 +17467,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new QualityApi. * @alias module:purecloud-platform-client-v2/api/QualityApi @@ -17938,7 +17938,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new RecordingApi. * @alias module:purecloud-platform-client-v2/api/RecordingApi @@ -18349,7 +18349,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ResponseManagementApi. * @alias module:purecloud-platform-client-v2/api/ResponseManagementApi @@ -18470,7 +18470,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new RoutingApi. * @alias module:purecloud-platform-client-v2/api/RoutingApi @@ -19445,7 +19445,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SCIMApi. * @alias module:purecloud-platform-client-v2/api/SCIMApi @@ -19670,7 +19670,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ScreenRecordingApi. * @alias module:purecloud-platform-client-v2/api/ScreenRecordingApi @@ -19685,7 +19685,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new ScriptsApi. * @alias module:purecloud-platform-client-v2/api/ScriptsApi @@ -19821,7 +19821,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SearchApi. * @alias module:purecloud-platform-client-v2/api/SearchApi @@ -19981,7 +19981,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SettingsApi. * @alias module:purecloud-platform-client-v2/api/SettingsApi @@ -20009,7 +20009,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SpeechTextAnalyticsApi. * @alias module:purecloud-platform-client-v2/api/SpeechTextAnalyticsApi @@ -20253,7 +20253,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new StationsApi. * @alias module:purecloud-platform-client-v2/api/StationsApi @@ -20285,7 +20285,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new SuggestApi. * @alias module:purecloud-platform-client-v2/api/SuggestApi @@ -20325,7 +20325,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TaskManagementApi. * @alias module:purecloud-platform-client-v2/api/TaskManagementApi @@ -20691,7 +20691,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TeamsApi. * @alias module:purecloud-platform-client-v2/api/TeamsApi @@ -20770,7 +20770,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TelephonyApi. * @alias module:purecloud-platform-client-v2/api/TelephonyApi @@ -20817,7 +20817,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TelephonyProvidersEdgeApi. * @alias module:purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi @@ -21627,7 +21627,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TextbotsApi. * @alias module:purecloud-platform-client-v2/api/TextbotsApi @@ -21662,7 +21662,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new TokensApi. * @alias module:purecloud-platform-client-v2/api/TokensApi @@ -21696,7 +21696,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UploadsApi. * @alias module:purecloud-platform-client-v2/api/UploadsApi @@ -21762,7 +21762,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UsageApi. * @alias module:purecloud-platform-client-v2/api/UsageApi @@ -21816,7 +21816,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UserRecordingsApi. * @alias module:purecloud-platform-client-v2/api/UserRecordingsApi @@ -21865,7 +21865,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UsersApi. * @alias module:purecloud-platform-client-v2/api/UsersApi @@ -22528,7 +22528,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new UtilitiesApi. * @alias module:purecloud-platform-client-v2/api/UtilitiesApi @@ -22555,7 +22555,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new VoicemailApi. * @alias module:purecloud-platform-client-v2/api/VoicemailApi @@ -22704,7 +22704,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebChatApi. * @alias module:purecloud-platform-client-v2/api/WebChatApi @@ -22839,7 +22839,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebDeploymentsApi. * @alias module:purecloud-platform-client-v2/api/WebDeploymentsApi @@ -22960,7 +22960,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WebMessagingApi. * @alias module:purecloud-platform-client-v2/api/WebMessagingApi @@ -22976,7 +22976,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WidgetsApi. * @alias module:purecloud-platform-client-v2/api/WidgetsApi @@ -23011,7 +23011,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 192.1.0 + * @version 192.2.0 */ /** * Constructs a new WorkforceManagementApi. * @alias module:purecloud-platform-client-v2/api/WorkforceManagementApi @@ -24489,7 +24489,7 @@ if(timeOffLimitId===undefined||timeOffLimitId===null){throw'Missing the required * *

* @module purecloud-platform-client-v2/index - * @version 192.1.0 + * @version 192.2.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 236b0808b..cc38a85d2 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 D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return x(e).length;default:if(a)return n?-1:D(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 x(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"),D=R.custom,x=N(D)?D: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 D=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"}if(B(i)){if(0===i.length)return"[]";var oe=Z(i,K);return D&&!function(e){for(var i=0;i=0)return!1;return!0}(oe)?"["+$(oe,D)+"]":"[ "+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(x&&"function"==typeof i[x]&&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,D)}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,D)}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+"{}":D?ge+"{"+$(ue,D)+"}":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 D=0;D0?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(){n=function(){return i};var e,i={},t=Object.prototype,a=t.hasOwnProperty,o=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 a=i&&i.prototype instanceof w?i:w,r=Object.create(a.prototype),l=new E(n||[]);return o(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 C(){}function I(){}var A={};p(A,l,function(){return this});var b=Object.getPrototypeOf,j=b&&b(b(G([])));j&&j!==t&&a.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(n,o,r,l){var s=d(e[n],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==y(p)&&a.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 n;o(this,"_invoke",{value:function(e,a){function o(){return new i(function(i,n){t(e,a,i,n)})}return n=n?n.then(o,o):o()}})}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 n=-1,o=function t(){for(;++n=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=a.call(r,"catchLoc"),u=a.call(r,"finallyLoc");if(s&&u){if(this.prev=0;--t){var n=this.tryEntries[t];if(n.tryLoc<=this.prev&&a.call(n,"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 a(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 o(e){return function(e){if(Array.isArray(e))return p(e)}(e)||r(e)||u(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 r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,i){return c(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,r,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==i);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw a}}return l}}(e,i)||u(e,i)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,i){if(e){if("string"==typeof e)return p(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,i):void 0}}function p(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t>18&63]+b[a>>12&63]+b[a>>6&63]+b[63&a]);return o.join("")}function T(e){var i;P||O();for(var t=e.length,n=t%3,a="",o=[],r=0,l=t-n;rl?l:r+16383));return 1===n?(i=e[t-1],a+=b[i>>2],a+=b[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=b[i>>10],a+=b[i>>4&63],a+=b[i<<2&63],a+="="),o.push(a),o.join("")}function q(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 S(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 E={}.toString,G=Array.isArray||function(e){return"[object Array]"==E.call(e)};function U(){return D.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(e,i){if(U()=U())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U().toString(16)+" bytes");return 0|e}function N(e){return!(null==e||!e._isBuffer)}function K(e,i){if(N(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 me(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return ve(e).length;default:if(n)return me(e).length;i=(""+i).toLowerCase(),n=!0}}function F(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function J(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=D.from(i,n)),N(i))return 0===i.length?-1:V(e,i,t,n,a);if("number"==typeof i)return i&=255,D.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):V(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function V(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 X(e,i,t){return 0===i&&t===e.length?T(e):T(e.slice(i,t))}function ee(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<=ie)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 ae(this,i,t);case"utf8":case"utf-8":return ee(this,i,t);case"ascii":return te(this,i,t);case"latin1":case"binary":return ne(this,i,t);case"base64":return X(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},D.prototype.equals=function(e){if(!N(e))throw new TypeError("Argument must be a Buffer");return this===e||0===D.compare(this,e)},D.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},D.prototype.compare=function(e,i,t,n,a){if(!N(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 _(this,e,i,t);case"utf8":case"utf-8":return Q(this,e,i,t);case"ascii":return H(this,e,i,t);case"latin1":case"binary":return Y(this,e,i,t);case"base64":return $(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(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 le(e,i,t,n,a,o){if(!N(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function se(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 ue(e,i,t,n){i<0&&(i=4294967295+i+1);for(var a=0,o=Math.min(e.length-t,4);a>>8*(n?a:3-a)&255}function pe(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ce(e,i,t,n,a){return a||pe(e,0,t,4),S(e,i,t,n,23,4),t+4}function de(e,i,t,n,a){return a||pe(e,0,t,8),S(e,i,t,n,52,8),t+8}D.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},D.prototype.readUInt8=function(e,i){return i||re(e,1,this.length),this[e]},D.prototype.readUInt16LE=function(e,i){return i||re(e,2,this.length),this[e]|this[e+1]<<8},D.prototype.readUInt16BE=function(e,i){return i||re(e,2,this.length),this[e]<<8|this[e+1]},D.prototype.readUInt32LE=function(e,i){return i||re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},D.prototype.readUInt32BE=function(e,i){return i||re(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},D.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||re(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},D.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||re(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},D.prototype.readInt8=function(e,i){return i||re(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},D.prototype.readInt16LE=function(e,i){i||re(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},D.prototype.readInt16BE=function(e,i){i||re(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},D.prototype.readInt32LE=function(e,i){return i||re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},D.prototype.readInt32BE=function(e,i){return i||re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},D.prototype.readFloatLE=function(e,i){return i||re(e,4,this.length),q(this,e,!0,23,4)},D.prototype.readFloatBE=function(e,i){return i||re(e,4,this.length),q(this,e,!1,23,4)},D.prototype.readDoubleLE=function(e,i){return i||re(e,8,this.length),q(this,e,!0,52,8)},D.prototype.readDoubleBE=function(e,i){return i||re(e,8,this.length),q(this,e,!1,52,8)},D.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||le(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},D.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,1,255,0),D.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},D.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):se(this,e,i,!0),i+2},D.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):se(this,e,i,!1),i+2},D.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):ue(this,e,i,!0),i+4},D.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ue(this,e,i,!1),i+4},D.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);le(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},D.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);le(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},D.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,1,127,-128),D.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},D.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):se(this,e,i,!0),i+2},D.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):se(this,e,i,!1),i+2},D.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,2147483647,-2147483648),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):ue(this,e,i,!0),i+4},D.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ue(this,e,i,!1),i+4},D.prototype.writeFloatLE=function(e,i,t){return ce(this,e,i,!0,t)},D.prototype.writeFloatBE=function(e,i,t){return ce(this,e,i,!1,t)},D.prototype.writeDoubleLE=function(e,i,t){return de(this,e,i,!0,t)},D.prototype.writeDoubleBE=function(e,i,t){return de(this,e,i,!1,t)},D.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||!D.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 ve(e){return function(e){var i,t,n,a,o,r;P||O();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 k(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=j[e.charCodeAt(i)]<<2|j[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=j[e.charCodeAt(i)]<<10|j[e.charCodeAt(i+1)]<<4|j[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(ge,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function fe(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function we(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function ye(e,i){return function(){return e.apply(i,arguments)}}var Ce,Ie=Object.prototype.toString,Ae=Object.getPrototypeOf,be=(Ce=Object.create(null),function(e){var i=Ie.call(e);return Ce[i]||(Ce[i]=i.slice(8,-1).toLowerCase())}),je=function(e){return e=e.toLowerCase(),function(i){return be(i)===e}},ke=function(e){return function(i){return y(i)===e}},Pe=Array.isArray,Oe=ke("undefined");var Me=je("ArrayBuffer");var Te=ke("string"),qe=ke("function"),Se=ke("number"),Ee=function(e){return null!==e&&"object"===y(e)},Ge=function(e){if("object"!==be(e))return!1;var i=Ae(e);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in e||Symbol.iterator in e)},Ue=je("Date"),Re=je("File"),De=je("Blob"),xe=je("FileList"),ze=je("URLSearchParams");function We(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"!==y(e)&&(e=[e]),Pe(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:A,Ne=function(e){return!Oe(e)&&e!==Le};var Ke,Fe=(Ke="undefined"!=typeof Uint8Array&&Ae(Uint8Array),function(e){return Ke&&e instanceof Ke}),Je=je("HTMLFormElement"),Ve=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),_e=je("RegExp"),Qe=function(e,i){var t={};We(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},He="abcdefghijklmnopqrstuvwxyz",Ye={DIGIT:"0123456789",ALPHA:He,ALPHA_DIGIT:He+He.toUpperCase()+"0123456789"};var $e=je("AsyncFunction"),Ze={isArray:Pe,isArrayBuffer:Me,isBuffer:function(e){return null!==e&&!Oe(e)&&null!==e.constructor&&!Oe(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||qe(e.append)&&("formdata"===(i=be(e))||"object"===i&&qe(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Me(e.buffer)},isString:Te,isNumber:Se,isBoolean:function(e){return!0===e||!1===e},isObject:Ee,isPlainObject:Ge,isUndefined:Oe,isDate:Ue,isFile:Re,isBlob:De,isRegExp:_e,isFunction:qe,isStream:function(e){return Ee(e)&&qe(e.pipe)},isURLSearchParams:ze,isTypedArray:Fe,isFileList:xe,forEach:We,merge:function e(){for(var i=(Ne(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&Be(t,a)||a;Ge(t[o])&&Ge(n)?t[o]=e(t[o],n):Ge(n)?t[o]=e({},n):Pe(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&&Ae(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:be,kindOfTest:je,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(Pe(e))return e;var i=e.length;if(!Se(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:Je,hasOwnProperty:Ve,hasOwnProp:Ve,reduceDescriptors:Qe,freezeMethods:function(e){Qe(e,function(i,t){if(qe(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];qe(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 Pe(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 e=+e,Number.isFinite(e)?e:i},findKey:Be,global:Le,isContextDefined:Ne,ALPHABET:Ye,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]:Ye.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&qe(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10);return function e(t,n){if(Ee(t)){if(i.indexOf(t)>=0)return;if(!("toJSON"in t)){i[n]=t;var a=Pe(t)?[]:{};return We(t,function(i,t){var o=e(i,n+1);!Oe(o)&&(a[t]=o)}),i[n]=void 0,a}}return t}(e,0)},isAsyncFn:$e,isThenable:function(e){return e&&(Ee(e)||qe(e))&&qe(e.then)&&qe(e.catch)}};function Xe(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)}Ze.inherits(Xe,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:Ze.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ei=Xe.prototype,ii={};["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){ii[e]={value:e}}),Object.defineProperties(Xe,ii),Object.defineProperty(ei,"isAxiosError",{value:!0}),Xe.from=function(e,i,t,n,a,o){var r=Object.create(ei);return Ze.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),Xe.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function ti(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function ni(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function ai(e,i,t){return e?e.concat(i).map(function(e,i){return e=ni(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var oi=Ze.toFlatObject(Ze,{},null,function(e){return/^is[A-Z]/.test(e)});function ri(e,i,t){if(!Ze.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=Ze.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!Ze.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(i);if(!Ze.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!l&&Ze.isBlob(e))throw new Xe("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):D.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===y(e))if(Ze.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(ti)}(e)||(Ze.isFileList(e)||Ze.endsWith(t,"[]"))&&(l=Ze.toArray(e)))return t=ni(t),l.forEach(function(e,n){!Ze.isUndefined(e)&&null!==e&&i.append(!0===r?ai([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!ti(e)||(i.append(ai(a,t,o),s(e)),!1)}var p=[],c=Object.assign(oi,{defaultVisitor:u,convertValue:s,isVisitable:ti});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!Ze.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),Ze.forEach(t,function(t,o){!0===(!(Ze.isUndefined(t)||null===t)&&a.call(i,t,Ze.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function li(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function si(e,i){this._pairs=[],e&&ri(e,this,i)}var ui=si.prototype;function pi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ci(e,i,t){if(!i)return e;var n,a=t&&t.encode||pi,o=t&&t.serialize;if(n=o?o(i,t):Ze.isURLSearchParams(i)?i.toString():new si(i,t).toString(a)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ui.append=function(e,i){this._pairs.push([e,i])},ui.toString=function(e){var i=e?function(i){return e.call(this,i,li)}:li;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var di,gi=function(){return f(function e(){m(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){Ze.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),hi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:si,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vi="undefined"!=typeof window&&"undefined"!=typeof document,fi=(di="undefined"!=typeof navigator&&navigator.product,vi&&["ReactNative","NativeScript","NS"].indexOf(di)<0),wi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,yi=g(g({},Object.freeze({__proto__:null,hasBrowserEnv:vi,hasStandardBrowserWebWorkerEnv:wi,hasStandardBrowserEnv:fi})),mi);function Ci(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&&Ze.isArray(n)?n.length:o,l?(Ze.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&Ze.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&Ze.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=Ze.isObject(e);if(o&&Ze.isHTMLForm(e)&&(e=new FormData(e)),Ze.isFormData(e))return a?JSON.stringify(Ci(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.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 ri(e,new yi.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return yi.isNode&&Ze.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return ri(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(Ze.isString(e))try{return(i||JSON.parse)(e),Ze.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||Ii.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(e&&Ze.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 Xe.from(e,Xe.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:yi.classes.FormData,Blob:yi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],function(e){Ii.headers[e]={}});var Ai=Ii,bi=Ze.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"]),ji=Symbol("internals");function ki(e){return e&&String(e).trim().toLowerCase()}function Pi(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(Pi):String(e)}function Oi(e,i,t,n,a){return Ze.isFunction(n)?n.call(this,i,t):(a&&(i=t),Ze.isString(i)?Ze.isString(n)?-1!==i.indexOf(n):Ze.isRegExp(n)?n.test(i):void 0:void 0)}var Mi=function(){return f(function e(i){m(this,e),i&&this.set(i)},[{key:"set",value:function(e,i,t){var n=this;function a(e,i,t){var a=ki(i);if(!a)throw new Error("header name must be a non-empty string");var o=Ze.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Pi(e))}var o,r,l,s,u,p=function(e,i){return Ze.forEach(e,function(e,t){return a(e,t,i)})};return Ze.isPlainObject(e)||e instanceof this.constructor?p(e,i):Ze.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?p((u={},(o=e)&&o.split("\n").forEach(function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),l=e.substring(s+1).trim(),!r||u[r]&&bi[r]||("set-cookie"===r?u[r]?u[r].push(l):u[r]=[l]:u[r]=u[r]?u[r]+", "+l:l)}),u),i):null!=e&&a(i,e,t),this}},{key:"get",value:function(e,i){if(e=ki(e)){var t=Ze.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(Ze.isFunction(i))return i.call(this,n,t);if(Ze.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=ki(e)){var t=Ze.findKey(this,e);return!(!t||void 0===this[t]||i&&!Oi(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=ki(e)){var a=Ze.findKey(t,e);!a||i&&!Oi(0,t[a],a,i)||(delete t[a],n=!0)}}return Ze.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&&!Oi(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return Ze.forEach(this,function(n,a){var o=Ze.findKey(t,a);if(o)return i[o]=Pi(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]=Pi(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;a1?"since :\n"+s.map(zi).join("\n"):" "+zi(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:xi};function Li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ei(null,e)}function Ni(e){return Li(e),e.headers=Ti.from(e.headers),e.data=qi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bi.getAdapter(e.adapter||Ai.adapter)(e).then(function(i){return Li(e),i.data=qi.call(e,e.transformResponse,i),i.headers=Ti.from(i.headers),i},function(i){return Si(i)||(Li(e),i&&i.response&&(i.response.data=qi.call(e,e.transformResponse,i.response),i.response.headers=Ti.from(i.response.headers))),Promise.reject(i)})}var Ki=function(e){return e instanceof Ti?g({},e):e};function Fi(e,i){i=i||{};var t={};function n(e,i,t){return Ze.isPlainObject(e)&&Ze.isPlainObject(i)?Ze.merge.call({caseless:t},e,i):Ze.isPlainObject(i)?Ze.merge({},i):Ze.isArray(i)?i.slice():i}function a(e,i,t){return Ze.isUndefined(i)?Ze.isUndefined(e)?void 0:n(void 0,e,t):n(e,i,t)}function o(e,i){if(!Ze.isUndefined(i))return n(void 0,i)}function r(e,i){return Ze.isUndefined(i)?Ze.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(Ki(e),Ki(i),!0)}};return Ze.forEach(Object.keys(Object.assign({},e,i)),function(n){var o=s[n]||a,r=o(e[n],i[n],n);Ze.isUndefined(r)&&o!==l||(t[n]=r)}),t}var Ji="1.6.8",Vi={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){Vi[e]=function(t){return y(t)===e||"a"+(i<1?"n ":" ")+e}});var _i={};Vi.transitional=function(e,i,t){function n(e,i){return"[Axios v"+Ji+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new Xe(n(a," has been removed"+(i?" in "+i:"")),Xe.ERR_DEPRECATED);return i&&!_i[a]&&(_i[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 Qi={assertOptions:function(e,i,t){if("object"!==y(e))throw new Xe("options must be an object",Xe.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 Xe("option "+o+" must be "+s,Xe.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new Xe("Unknown option "+o,Xe.ERR_BAD_OPTION)}},validators:Vi},Hi=Qi.validators,Yi=function(){return f(function e(i){m(this,e),this.defaults=i,this.interceptors={request:new gi,response:new gi}},[{key:"request",value:function(){var e,i=(e=n().mark(function e(i,t){var a,o;return n().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:throw e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error,o=a.stack?a.stack.replace(/^.+\n/,""):"",e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o),e.t0;case 10:case"end":return e.stop()}},e,this,[[0,6]])}),function(){var i=this,t=arguments;return new Promise(function(n,o){var r=e.apply(i,t);function l(e){a(r,n,o,l,s,"next",e)}function s(e){a(r,n,o,l,s,"throw",e)}l(void 0)})});return function(e,t){return i.apply(this,arguments)}}()},{key:"_request",value:function(e,i){"string"==typeof e?(i=i||{}).url=e:i=e||{};var t=i=Fi(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&Qi.assertOptions(n,{silentJSONParsing:Hi.transitional(Hi.boolean),forcedJSONParsing:Hi.transitional(Hi.boolean),clarifyTimeoutError:Hi.transitional(Hi.boolean)},!1),null!=a&&(Ze.isFunction(a)?i.paramsSerializer={serialize:a}:Qi.assertOptions(a,{encode:Hi.function,serialize:Hi.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&Ze.merge(o.common,o[i.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Ti.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=[Ni.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 Ei(e,i,a),t(n.reason))})}return f(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 Xi={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(Xi).forEach(function(e){var i=l(e,2),t=i[0],n=i[1];Xi[n]=t});var et=Xi;var it=function e(i){var t=new $i(i),n=ye($i.prototype.request,t);return Ze.extend(n,$i.prototype,t,{allOwnKeys:!0}),Ze.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Fi(i,t))},n}(Ai);it.Axios=$i,it.CanceledError=Ei,it.CancelToken=Zi,it.isCancel=Si,it.VERSION=Ji,it.toFormData=ri,it.AxiosError=Xe,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(i){return e.apply(null,i)}},it.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Fi,it.AxiosHeaders=Ti,it.formToJSON=function(e){return Ci(Ze.isHTMLForm(e)?new FormData(e):e)},it.getAdapter=Bi.getAdapter,it.HttpStatusCode=et,it.default=it;var tt=it,nt={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},at={formats:{JSON:"json",TEXT:"text"}},ot=function(){return f(function e(){m(this,e),this.log_level=nt.level.LNone,this.log_format=at.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 nt}},{key:"logFormatEnum",get:function(){return at}},{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===at.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=D.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=D.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=D.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 tt({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:C.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(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 D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return x(e).length;default:if(a)return n?-1:D(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 x(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"),D=R.custom,x=N(D)?D: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 D=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"}if(B(i)){if(0===i.length)return"[]";var oe=Z(i,K);return D&&!function(e){for(var i=0;i=0)return!1;return!0}(oe)?"["+$(oe,D)+"]":"[ "+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(x&&"function"==typeof i[x]&&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,D)}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,D)}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+"{}":D?ge+"{"+$(ue,D)+"}":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 D=0;D0?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(){n=function(){return i};var e,i={},t=Object.prototype,a=t.hasOwnProperty,o=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 a=i&&i.prototype instanceof w?i:w,r=Object.create(a.prototype),l=new E(n||[]);return o(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 C(){}function I(){}var A={};p(A,l,function(){return this});var b=Object.getPrototypeOf,j=b&&b(b(G([])));j&&j!==t&&a.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(n,o,r,l){var s=d(e[n],e,o);if("throw"!==s.type){var u=s.arg,p=u.value;return p&&"object"==y(p)&&a.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 n;o(this,"_invoke",{value:function(e,a){function o(){return new i(function(i,n){t(e,a,i,n)})}return n=n?n.then(o,o):o()}})}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 n=-1,o=function t(){for(;++n=0;--o){var r=this.tryEntries[o],l=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var s=a.call(r,"catchLoc"),u=a.call(r,"finallyLoc");if(s&&u){if(this.prev=0;--t){var n=this.tryEntries[t];if(n.tryLoc<=this.prev&&a.call(n,"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 a(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 o(e){return function(e){if(Array.isArray(e))return p(e)}(e)||r(e)||u(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 r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function l(e,i){return c(e)||function(e,i){var t=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=t){var n,a,o,r,l=[],s=!0,u=!1;try{if(o=(t=t.call(e)).next,0===i){if(Object(t)!==t)return;s=!1}else for(;!(s=(n=o.call(t)).done)&&(l.push(n.value),l.length!==i);s=!0);}catch(e){u=!0,a=e}finally{try{if(!s&&null!=t.return&&(r=t.return(),Object(r)!==r))return}finally{if(u)throw a}}return l}}(e,i)||u(e,i)||s()}function s(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,i){if(e){if("string"==typeof e)return p(e,i);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,i):void 0}}function p(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,n=new Array(i);t>18&63]+b[a>>12&63]+b[a>>6&63]+b[63&a]);return o.join("")}function T(e){var i;P||O();for(var t=e.length,n=t%3,a="",o=[],r=0,l=t-n;rl?l:r+16383));return 1===n?(i=e[t-1],a+=b[i>>2],a+=b[i<<4&63],a+="=="):2===n&&(i=(e[t-2]<<8)+e[t-1],a+=b[i>>10],a+=b[i>>4&63],a+=b[i<<2&63],a+="="),o.push(a),o.join("")}function q(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 S(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 E={}.toString,G=Array.isArray||function(e){return"[object Array]"==E.call(e)};function U(){return D.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function R(e,i){if(U()=U())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+U().toString(16)+" bytes");return 0|e}function N(e){return!(null==e||!e._isBuffer)}function K(e,i){if(N(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 me(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*t;case"hex":return t>>>1;case"base64":return ve(e).length;default:if(n)return me(e).length;i=(""+i).toLowerCase(),n=!0}}function F(e,i,t){var n=e[i];e[i]=e[t],e[t]=n}function J(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=D.from(i,n)),N(i))return 0===i.length?-1:V(e,i,t,n,a);if("number"==typeof i)return i&=255,D.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?a?Uint8Array.prototype.indexOf.call(e,i,t):Uint8Array.prototype.lastIndexOf.call(e,i,t):V(e,[i],t,n,a);throw new TypeError("val must be string, number or Buffer")}function V(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 X(e,i,t){return 0===i&&t===e.length?T(e):T(e.slice(i,t))}function ee(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<=ie)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 ae(this,i,t);case"utf8":case"utf-8":return ee(this,i,t);case"ascii":return te(this,i,t);case"latin1":case"binary":return ne(this,i,t);case"base64":return X(this,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,i,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},D.prototype.equals=function(e){if(!N(e))throw new TypeError("Argument must be a Buffer");return this===e||0===D.compare(this,e)},D.prototype.inspect=function(){var e="";return this.length>0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},D.prototype.compare=function(e,i,t,n,a){if(!N(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 _(this,e,i,t);case"utf8":case"utf-8":return Q(this,e,i,t);case"ascii":return H(this,e,i,t);case"latin1":case"binary":return Y(this,e,i,t);case"base64":return $(this,e,i,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Z(this,e,i,t);default:if(o)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),o=!0}},D.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var ie=4096;function te(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 le(e,i,t,n,a,o){if(!N(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i>a||ie.length)throw new RangeError("Index out of range")}function se(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 ue(e,i,t,n){i<0&&(i=4294967295+i+1);for(var a=0,o=Math.min(e.length-t,4);a>>8*(n?a:3-a)&255}function pe(e,i,t,n,a,o){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function ce(e,i,t,n,a){return a||pe(e,0,t,4),S(e,i,t,n,23,4),t+4}function de(e,i,t,n,a){return a||pe(e,0,t,8),S(e,i,t,n,52,8),t+8}D.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},D.prototype.readUInt8=function(e,i){return i||re(e,1,this.length),this[e]},D.prototype.readUInt16LE=function(e,i){return i||re(e,2,this.length),this[e]|this[e+1]<<8},D.prototype.readUInt16BE=function(e,i){return i||re(e,2,this.length),this[e]<<8|this[e+1]},D.prototype.readUInt32LE=function(e,i){return i||re(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},D.prototype.readUInt32BE=function(e,i){return i||re(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},D.prototype.readIntLE=function(e,i,t){e|=0,i|=0,t||re(e,i,this.length);for(var n=this[e],a=1,o=0;++o=(a*=128)&&(n-=Math.pow(2,8*i)),n},D.prototype.readIntBE=function(e,i,t){e|=0,i|=0,t||re(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},D.prototype.readInt8=function(e,i){return i||re(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},D.prototype.readInt16LE=function(e,i){i||re(e,2,this.length);var t=this[e]|this[e+1]<<8;return 32768&t?4294901760|t:t},D.prototype.readInt16BE=function(e,i){i||re(e,2,this.length);var t=this[e+1]|this[e]<<8;return 32768&t?4294901760|t:t},D.prototype.readInt32LE=function(e,i){return i||re(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},D.prototype.readInt32BE=function(e,i){return i||re(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},D.prototype.readFloatLE=function(e,i){return i||re(e,4,this.length),q(this,e,!0,23,4)},D.prototype.readFloatBE=function(e,i){return i||re(e,4,this.length),q(this,e,!1,23,4)},D.prototype.readDoubleLE=function(e,i){return i||re(e,8,this.length),q(this,e,!0,52,8)},D.prototype.readDoubleBE=function(e,i){return i||re(e,8,this.length),q(this,e,!1,52,8)},D.prototype.writeUIntLE=function(e,i,t,n){(e=+e,i|=0,t|=0,n)||le(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},D.prototype.writeUInt8=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,1,255,0),D.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[i]=255&e,i+1},D.prototype.writeUInt16LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):se(this,e,i,!0),i+2},D.prototype.writeUInt16BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,65535,0),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):se(this,e,i,!1),i+2},D.prototype.writeUInt32LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[i+3]=e>>>24,this[i+2]=e>>>16,this[i+1]=e>>>8,this[i]=255&e):ue(this,e,i,!0),i+4},D.prototype.writeUInt32BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,4294967295,0),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ue(this,e,i,!1),i+4},D.prototype.writeIntLE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);le(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},D.prototype.writeIntBE=function(e,i,t,n){if(e=+e,i|=0,!n){var a=Math.pow(2,8*t-1);le(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},D.prototype.writeInt8=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,1,127,-128),D.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[i]=255&e,i+1},D.prototype.writeInt16LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8):se(this,e,i,!0),i+2},D.prototype.writeInt16BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,2,32767,-32768),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>8,this[i+1]=255&e):se(this,e,i,!1),i+2},D.prototype.writeInt32LE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,2147483647,-2147483648),D.TYPED_ARRAY_SUPPORT?(this[i]=255&e,this[i+1]=e>>>8,this[i+2]=e>>>16,this[i+3]=e>>>24):ue(this,e,i,!0),i+4},D.prototype.writeInt32BE=function(e,i,t){return e=+e,i|=0,t||le(this,e,i,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),D.TYPED_ARRAY_SUPPORT?(this[i]=e>>>24,this[i+1]=e>>>16,this[i+2]=e>>>8,this[i+3]=255&e):ue(this,e,i,!1),i+4},D.prototype.writeFloatLE=function(e,i,t){return ce(this,e,i,!0,t)},D.prototype.writeFloatBE=function(e,i,t){return ce(this,e,i,!1,t)},D.prototype.writeDoubleLE=function(e,i,t){return de(this,e,i,!0,t)},D.prototype.writeDoubleBE=function(e,i,t){return de(this,e,i,!1,t)},D.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||!D.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 ve(e){return function(e){var i,t,n,a,o,r;P||O();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 k(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=j[e.charCodeAt(i)]<<2|j[e.charCodeAt(i+1)]>>4,r[s++]=255&a):1===o&&(a=j[e.charCodeAt(i)]<<10|j[e.charCodeAt(i+1)]<<4|j[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(ge,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function fe(e,i,t,n){for(var a=0;a=i.length||a>=e.length);++a)i[a+t]=e[a];return a}function we(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function ye(e,i){return function(){return e.apply(i,arguments)}}var Ce,Ie=Object.prototype.toString,Ae=Object.getPrototypeOf,be=(Ce=Object.create(null),function(e){var i=Ie.call(e);return Ce[i]||(Ce[i]=i.slice(8,-1).toLowerCase())}),je=function(e){return e=e.toLowerCase(),function(i){return be(i)===e}},ke=function(e){return function(i){return y(i)===e}},Pe=Array.isArray,Oe=ke("undefined");var Me=je("ArrayBuffer");var Te=ke("string"),qe=ke("function"),Se=ke("number"),Ee=function(e){return null!==e&&"object"===y(e)},Ge=function(e){if("object"!==be(e))return!1;var i=Ae(e);return!(null!==i&&i!==Object.prototype&&null!==Object.getPrototypeOf(i)||Symbol.toStringTag in e||Symbol.iterator in e)},Ue=je("Date"),Re=je("File"),De=je("Blob"),xe=je("FileList"),ze=je("URLSearchParams");function We(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"!==y(e)&&(e=[e]),Pe(e))for(t=0,n=e.length;t0;)if(i===(t=n[a]).toLowerCase())return t;return null}var Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:A,Ne=function(e){return!Oe(e)&&e!==Le};var Ke,Fe=(Ke="undefined"!=typeof Uint8Array&&Ae(Uint8Array),function(e){return Ke&&e instanceof Ke}),Je=je("HTMLFormElement"),Ve=function(e){var i=Object.prototype.hasOwnProperty;return function(e,t){return i.call(e,t)}}(),_e=je("RegExp"),Qe=function(e,i){var t={};We(Object.getOwnPropertyDescriptors(e),function(n,a){var o;!1!==(o=i(n,a,e))&&(t[a]=o||n)}),Object.defineProperties(e,t)},He="abcdefghijklmnopqrstuvwxyz",Ye={DIGIT:"0123456789",ALPHA:He,ALPHA_DIGIT:He+He.toUpperCase()+"0123456789"};var $e=je("AsyncFunction"),Ze={isArray:Pe,isArrayBuffer:Me,isBuffer:function(e){return null!==e&&!Oe(e)&&null!==e.constructor&&!Oe(e.constructor)&&qe(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var i;return e&&("function"==typeof FormData&&e instanceof FormData||qe(e.append)&&("formdata"===(i=be(e))||"object"===i&&qe(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Me(e.buffer)},isString:Te,isNumber:Se,isBoolean:function(e){return!0===e||!1===e},isObject:Ee,isPlainObject:Ge,isUndefined:Oe,isDate:Ue,isFile:Re,isBlob:De,isRegExp:_e,isFunction:qe,isStream:function(e){return Ee(e)&&qe(e.pipe)},isURLSearchParams:ze,isTypedArray:Fe,isFileList:xe,forEach:We,merge:function e(){for(var i=(Ne(this)&&this||{}).caseless,t={},n=function(n,a){var o=i&&Be(t,a)||a;Ge(t[o])&&Ge(n)?t[o]=e(t[o],n):Ge(n)?t[o]=e({},n):Pe(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&&Ae(e)}while(e&&(!t||t(e,i))&&e!==Object.prototype);return i},kindOf:be,kindOfTest:je,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(Pe(e))return e;var i=e.length;if(!Se(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:Je,hasOwnProperty:Ve,hasOwnProp:Ve,reduceDescriptors:Qe,freezeMethods:function(e){Qe(e,function(i,t){if(qe(e)&&-1!==["arguments","caller","callee"].indexOf(t))return!1;var n=e[t];qe(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 Pe(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 e=+e,Number.isFinite(e)?e:i},findKey:Be,global:Le,isContextDefined:Ne,ALPHABET:Ye,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]:Ye.ALPHA_DIGIT,t="",n=i.length;e--;)t+=i[Math.random()*n|0];return t},isSpecCompliantForm:function(e){return!!(e&&qe(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var i=new Array(10);return function e(t,n){if(Ee(t)){if(i.indexOf(t)>=0)return;if(!("toJSON"in t)){i[n]=t;var a=Pe(t)?[]:{};return We(t,function(i,t){var o=e(i,n+1);!Oe(o)&&(a[t]=o)}),i[n]=void 0,a}}return t}(e,0)},isAsyncFn:$e,isThenable:function(e){return e&&(Ee(e)||qe(e))&&qe(e.then)&&qe(e.catch)}};function Xe(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)}Ze.inherits(Xe,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:Ze.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var ei=Xe.prototype,ii={};["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){ii[e]={value:e}}),Object.defineProperties(Xe,ii),Object.defineProperty(ei,"isAxiosError",{value:!0}),Xe.from=function(e,i,t,n,a,o){var r=Object.create(ei);return Ze.toFlatObject(e,r,function(e){return e!==Error.prototype},function(e){return"isAxiosError"!==e}),Xe.call(r,e.message,i,t,n,a),r.cause=e,r.name=e.name,o&&Object.assign(r,o),r};function ti(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function ni(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function ai(e,i,t){return e?e.concat(i).map(function(e,i){return e=ni(e),!t&&i?"["+e+"]":e}).join(t?".":""):i}var oi=Ze.toFlatObject(Ze,{},null,function(e){return/^is[A-Z]/.test(e)});function ri(e,i,t){if(!Ze.isObject(e))throw new TypeError("target must be an object");i=i||new FormData;var n=(t=Ze.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,i){return!Ze.isUndefined(i[e])})).metaTokens,a=t.visitor||u,o=t.dots,r=t.indexes,l=(t.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(i);if(!Ze.isFunction(a))throw new TypeError("visitor must be a function");function s(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!l&&Ze.isBlob(e))throw new Xe("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):D.from(e):e}function u(e,t,a){var l=e;if(e&&!a&&"object"===y(e))if(Ze.endsWith(t,"{}"))t=n?t:t.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(ti)}(e)||(Ze.isFileList(e)||Ze.endsWith(t,"[]"))&&(l=Ze.toArray(e)))return t=ni(t),l.forEach(function(e,n){!Ze.isUndefined(e)&&null!==e&&i.append(!0===r?ai([t],n,o):null===r?t:t+"[]",s(e))}),!1;return!!ti(e)||(i.append(ai(a,t,o),s(e)),!1)}var p=[],c=Object.assign(oi,{defaultVisitor:u,convertValue:s,isVisitable:ti});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(t,n){if(!Ze.isUndefined(t)){if(-1!==p.indexOf(t))throw Error("Circular reference detected in "+n.join("."));p.push(t),Ze.forEach(t,function(t,o){!0===(!(Ze.isUndefined(t)||null===t)&&a.call(i,t,Ze.isString(o)?o.trim():o,n,c))&&e(t,n?n.concat(o):[o])}),p.pop()}}(e),i}function li(e){var i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return i[e]})}function si(e,i){this._pairs=[],e&&ri(e,this,i)}var ui=si.prototype;function pi(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ci(e,i,t){if(!i)return e;var n,a=t&&t.encode||pi,o=t&&t.serialize;if(n=o?o(i,t):Ze.isURLSearchParams(i)?i.toString():new si(i,t).toString(a)){var r=e.indexOf("#");-1!==r&&(e=e.slice(0,r)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}ui.append=function(e,i){this._pairs.push([e,i])},ui.toString=function(e){var i=e?function(i){return e.call(this,i,li)}:li;return this._pairs.map(function(e){return i(e[0])+"="+i(e[1])},"").join("&")};var di,gi=function(){return f(function e(){m(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){Ze.forEach(this.handlers,function(i){null!==i&&e(i)})}}])}(),hi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mi={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:si,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},vi="undefined"!=typeof window&&"undefined"!=typeof document,fi=(di="undefined"!=typeof navigator&&navigator.product,vi&&["ReactNative","NativeScript","NS"].indexOf(di)<0),wi="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,yi=g(g({},Object.freeze({__proto__:null,hasBrowserEnv:vi,hasStandardBrowserWebWorkerEnv:wi,hasStandardBrowserEnv:fi})),mi);function Ci(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&&Ze.isArray(n)?n.length:o,l?(Ze.hasOwnProp(n,o)?n[o]=[n[o],t]:n[o]=t,!r):(n[o]&&Ze.isObject(n[o])||(n[o]=[]),i(e,t,n[o],a)&&Ze.isArray(n[o])&&(n[o]=function(e){var i,t,n={},a=Object.keys(e),o=a.length;for(i=0;i-1,o=Ze.isObject(e);if(o&&Ze.isHTMLForm(e)&&(e=new FormData(e)),Ze.isFormData(e))return a?JSON.stringify(Ci(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.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 ri(e,new yi.classes.URLSearchParams,Object.assign({visitor:function(e,i,t,n){return yi.isNode&&Ze.isBuffer(e)?(this.append(i,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},i))}(e,this.formSerializer).toString();if((t=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){var r=this.env&&this.env.FormData;return ri(t?{"files[]":e}:e,r&&new r,this.formSerializer)}}return o||a?(i.setContentType("application/json",!1),function(e,i,t){if(Ze.isString(e))try{return(i||JSON.parse)(e),Ze.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(t||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var i=this.transitional||Ii.transitional,t=i&&i.forcedJSONParsing,n="json"===this.responseType;if(e&&Ze.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 Xe.from(e,Xe.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:yi.classes.FormData,Blob:yi.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],function(e){Ii.headers[e]={}});var Ai=Ii,bi=Ze.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"]),ji=Symbol("internals");function ki(e){return e&&String(e).trim().toLowerCase()}function Pi(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(Pi):String(e)}function Oi(e,i,t,n,a){return Ze.isFunction(n)?n.call(this,i,t):(a&&(i=t),Ze.isString(i)?Ze.isString(n)?-1!==i.indexOf(n):Ze.isRegExp(n)?n.test(i):void 0:void 0)}var Mi=function(){return f(function e(i){m(this,e),i&&this.set(i)},[{key:"set",value:function(e,i,t){var n=this;function a(e,i,t){var a=ki(i);if(!a)throw new Error("header name must be a non-empty string");var o=Ze.findKey(n,a);(!o||void 0===n[o]||!0===t||void 0===t&&!1!==n[o])&&(n[o||i]=Pi(e))}var o,r,l,s,u,p=function(e,i){return Ze.forEach(e,function(e,t){return a(e,t,i)})};return Ze.isPlainObject(e)||e instanceof this.constructor?p(e,i):Ze.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?p((u={},(o=e)&&o.split("\n").forEach(function(e){s=e.indexOf(":"),r=e.substring(0,s).trim().toLowerCase(),l=e.substring(s+1).trim(),!r||u[r]&&bi[r]||("set-cookie"===r?u[r]?u[r].push(l):u[r]=[l]:u[r]=u[r]?u[r]+", "+l:l)}),u),i):null!=e&&a(i,e,t),this}},{key:"get",value:function(e,i){if(e=ki(e)){var t=Ze.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(Ze.isFunction(i))return i.call(this,n,t);if(Ze.isRegExp(i))return i.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,i){if(e=ki(e)){var t=Ze.findKey(this,e);return!(!t||void 0===this[t]||i&&!Oi(0,this[t],t,i))}return!1}},{key:"delete",value:function(e,i){var t=this,n=!1;function a(e){if(e=ki(e)){var a=Ze.findKey(t,e);!a||i&&!Oi(0,t[a],a,i)||(delete t[a],n=!0)}}return Ze.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&&!Oi(0,this[a],a,e,!0)||(delete this[a],n=!0)}return n}},{key:"normalize",value:function(e){var i=this,t={};return Ze.forEach(this,function(n,a){var o=Ze.findKey(t,a);if(o)return i[o]=Pi(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]=Pi(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;a1?"since :\n"+s.map(zi).join("\n"):" "+zi(s[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return t},adapters:xi};function Li(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ei(null,e)}function Ni(e){return Li(e),e.headers=Ti.from(e.headers),e.data=qi.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Bi.getAdapter(e.adapter||Ai.adapter)(e).then(function(i){return Li(e),i.data=qi.call(e,e.transformResponse,i),i.headers=Ti.from(i.headers),i},function(i){return Si(i)||(Li(e),i&&i.response&&(i.response.data=qi.call(e,e.transformResponse,i.response),i.response.headers=Ti.from(i.response.headers))),Promise.reject(i)})}var Ki=function(e){return e instanceof Ti?g({},e):e};function Fi(e,i){i=i||{};var t={};function n(e,i,t){return Ze.isPlainObject(e)&&Ze.isPlainObject(i)?Ze.merge.call({caseless:t},e,i):Ze.isPlainObject(i)?Ze.merge({},i):Ze.isArray(i)?i.slice():i}function a(e,i,t){return Ze.isUndefined(i)?Ze.isUndefined(e)?void 0:n(void 0,e,t):n(e,i,t)}function o(e,i){if(!Ze.isUndefined(i))return n(void 0,i)}function r(e,i){return Ze.isUndefined(i)?Ze.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(Ki(e),Ki(i),!0)}};return Ze.forEach(Object.keys(Object.assign({},e,i)),function(n){var o=s[n]||a,r=o(e[n],i[n],n);Ze.isUndefined(r)&&o!==l||(t[n]=r)}),t}var Ji="1.6.8",Vi={};["object","boolean","number","function","string","symbol"].forEach(function(e,i){Vi[e]=function(t){return y(t)===e||"a"+(i<1?"n ":" ")+e}});var _i={};Vi.transitional=function(e,i,t){function n(e,i){return"[Axios v"+Ji+"] Transitional option '"+e+"'"+i+(t?". "+t:"")}return function(t,a,o){if(!1===e)throw new Xe(n(a," has been removed"+(i?" in "+i:"")),Xe.ERR_DEPRECATED);return i&&!_i[a]&&(_i[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 Qi={assertOptions:function(e,i,t){if("object"!==y(e))throw new Xe("options must be an object",Xe.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 Xe("option "+o+" must be "+s,Xe.ERR_BAD_OPTION_VALUE)}else if(!0!==t)throw new Xe("Unknown option "+o,Xe.ERR_BAD_OPTION)}},validators:Vi},Hi=Qi.validators,Yi=function(){return f(function e(i){m(this,e),this.defaults=i,this.interceptors={request:new gi,response:new gi}},[{key:"request",value:function(){var e,i=(e=n().mark(function e(i,t){var a,o;return n().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:throw e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error&&(Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error,o=a.stack?a.stack.replace(/^.+\n/,""):"",e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o),e.t0;case 10:case"end":return e.stop()}},e,this,[[0,6]])}),function(){var i=this,t=arguments;return new Promise(function(n,o){var r=e.apply(i,t);function l(e){a(r,n,o,l,s,"next",e)}function s(e){a(r,n,o,l,s,"throw",e)}l(void 0)})});return function(e,t){return i.apply(this,arguments)}}()},{key:"_request",value:function(e,i){"string"==typeof e?(i=i||{}).url=e:i=e||{};var t=i=Fi(this.defaults,i),n=t.transitional,a=t.paramsSerializer,o=t.headers;void 0!==n&&Qi.assertOptions(n,{silentJSONParsing:Hi.transitional(Hi.boolean),forcedJSONParsing:Hi.transitional(Hi.boolean),clarifyTimeoutError:Hi.transitional(Hi.boolean)},!1),null!=a&&(Ze.isFunction(a)?i.paramsSerializer={serialize:a}:Qi.assertOptions(a,{encode:Hi.function,serialize:Hi.function},!0)),i.method=(i.method||this.defaults.method||"get").toLowerCase();var r=o&&Ze.merge(o.common,o[i.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],function(e){delete o[e]}),i.headers=Ti.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=[Ni.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 Ei(e,i,a),t(n.reason))})}return f(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 Xi={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(Xi).forEach(function(e){var i=l(e,2),t=i[0],n=i[1];Xi[n]=t});var et=Xi;var it=function e(i){var t=new $i(i),n=ye($i.prototype.request,t);return Ze.extend(n,$i.prototype,t,{allOwnKeys:!0}),Ze.extend(n,t,null,{allOwnKeys:!0}),n.create=function(t){return e(Fi(i,t))},n}(Ai);it.Axios=$i,it.CanceledError=Ei,it.CancelToken=Zi,it.isCancel=Si,it.VERSION=Ji,it.toFormData=ri,it.AxiosError=Xe,it.Cancel=it.CanceledError,it.all=function(e){return Promise.all(e)},it.spread=function(e){return function(i){return e.apply(null,i)}},it.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},it.mergeConfig=Fi,it.AxiosHeaders=Ti,it.formToJSON=function(e){return Ci(Ze.isHTMLForm(e)?new FormData(e):e)},it.getAdapter=Bi.getAdapter,it.HttpStatusCode=et,it.default=it;var tt=it,nt={level:{LNone:"none",LError:"error",LDebug:"debug",LTrace:"trace"}},at={formats:{JSON:"json",TEXT:"text"}},ot=function(){return f(function e(){m(this,e),this.log_level=nt.level.LNone,this.log_format=at.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 nt}},{key:"logFormatEnum",get:function(){return at}},{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===at.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=D.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=D.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=D.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 tt({method:"POST",url:"https://login.".concat(this.config.environment,"/oauth/token"),headers:{Authorization:"Basic "+e,"Content-Type":"application/x-www-form-urlencoded"},data:C.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;n - + diff --git a/build/docs/releaseNotes.md b/build/docs/releaseNotes.md index b93fcbfef..2ccd44d58 100644 --- a/build/docs/releaseNotes.md +++ b/build/docs/releaseNotes.md @@ -6,116 +6,7 @@ Platform API version: 8026 # Major Changes (0 changes) -# Minor Changes (28 changes) - -**/api/v2/conversations/{conversationId}/utilizationlabel** (2 changes) - -* Path was added -* Operation PATCH was added - -**KnowledgeBaseReference** (1 change) - -* Optional property languageCode was added - -**InboundRoute** (1 change) - -* Optional property imapFolder was added - -**ExternalSource** (1 change) - -* id is no longer readonly - -**Conversation** (1 change) - -* Optional property utilizationLabelId was added - -**Settings** (1 change) - -* Optional property callbacksInheritRoutingFromInboundCall was added - -**CallConversation** (1 change) - -* Optional property utilizationLabelId was added - -**CallbackConversation** (1 change) - -* Optional property utilizationLabelId was added - -**ChatConversation** (1 change) - -* Optional property utilizationLabelId was added - -**CobrowseConversation** (1 change) - -* Optional property utilizationLabelId was added - -**EmailConversation** (1 change) - -* Optional property utilizationLabelId was added - -**MessageConversation** (1 change) - -* Optional property utilizationLabelId was added - -**ConversationBasic** (1 change) - -* Optional property utilizationLabelId was added - -**KnowledgeDocumentCopy** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentPresentation** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentFeedbackResponse** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentFeedback** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentView** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentFeedback** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentView** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentCopy** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentPresentation** (1 change) - -* Optional property surfacingMethod was added - -**EmailErrorInfo** (1 change) - -* Model was added - -**ImapSettings** (1 change) - -* Model was added - -**InboundDomain** (1 change) - -* Optional property imapSettings was added - -**InboundDomainPatchRequest** (1 change) - -* Optional property imapSettings was added - -**ConversationUtilizationLabelUpdate** (1 change) - -* Model was added +# Minor Changes (0 changes) # Point Changes (0 changes) diff --git a/build/package-lock.json b/build/package-lock.json index 0e2c77a74..82524abcf 100644 --- a/build/package-lock.json +++ b/build/package-lock.json @@ -1,12 +1,12 @@ { "name": "purecloud-platform-client-v2", - "version": "192.1.0", + "version": "192.2.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "purecloud-platform-client-v2", - "version": "192.1.0", + "version": "192.2.0", "license": "MIT", "dependencies": { "axios": "^1.6.5", @@ -65,21 +65,21 @@ } }, "node_modules/@babel/core": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.4.tgz", - "integrity": "sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.24.5.tgz", + "integrity": "sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA==", "dev": true, "dependencies": { "@ampproject/remapping": "^2.2.0", "@babel/code-frame": "^7.24.2", - "@babel/generator": "^7.24.4", + "@babel/generator": "^7.24.5", "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-module-transforms": "^7.23.3", - "@babel/helpers": "^7.24.4", - "@babel/parser": "^7.24.4", + "@babel/helper-module-transforms": "^7.24.5", + "@babel/helpers": "^7.24.5", + "@babel/parser": "^7.24.5", "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0", + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5", "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", @@ -95,12 +95,12 @@ } }, "node_modules/@babel/generator": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.4.tgz", - "integrity": "sha512-Xd6+v6SnjWVx/nus+y0l1sxMOTOMBkyL4+BIdbALyatQnAe/SRVjANeDPSCYaX+i1iJmuGSKf3Z+E+V/va1Hvw==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.24.5.tgz", + "integrity": "sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA==", "dev": true, "dependencies": { - "@babel/types": "^7.24.0", + "@babel/types": "^7.24.5", "@jridgewell/gen-mapping": "^0.3.5", "@jridgewell/trace-mapping": "^0.3.25", "jsesc": "^2.5.1" @@ -150,19 +150,19 @@ } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.4.tgz", - "integrity": "sha512-lG75yeuUSVu0pIcbhiYMXBXANHrpUPaOfu7ryAzskCgKUHuAxRQI5ssrtmF0X9UXldPlvT0XM/A4F44OXRt6iQ==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.5.tgz", + "integrity": "sha512-uRc4Cv8UQWnE4NXlYTIIdM7wfFkOqlFztcC/gVXDKohKoVB3OyonfelUBaJzSwpBntZ2KYGF/9S7asCHsXwW6g==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", - "@babel/helper-member-expression-to-functions": "^7.23.0", + "@babel/helper-member-expression-to-functions": "^7.24.5", "@babel/helper-optimise-call-expression": "^7.22.5", "@babel/helper-replace-supers": "^7.24.1", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-split-export-declaration": "^7.24.5", "semver": "^6.3.1" }, "engines": { @@ -240,12 +240,12 @@ } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.23.0", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.23.0.tgz", - "integrity": "sha512-6gfrPwh7OuT6gZyJZvd6WbTfrqAo7vm4xCzAXOusKqq/vWdKXphTpj5klHKNmRUU6/QRGlBsyU9mAIPaWHlqJA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.5.tgz", + "integrity": "sha512-4owRteeihKWKamtqg4JmWSsEZU445xpFRXPEwp44HbgbxdWlUV1b4Agg4lkA806Lil5XM/e+FJyS0vj5T6vmcA==", "dev": true, "dependencies": { - "@babel/types": "^7.23.0" + "@babel/types": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -264,16 +264,16 @@ } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.23.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.23.3.tgz", - "integrity": "sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz", + "integrity": "sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-module-imports": "^7.22.15", - "@babel/helper-simple-access": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/helper-validator-identifier": "^7.22.20" + "@babel/helper-module-imports": "^7.24.3", + "@babel/helper-simple-access": "^7.24.5", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/helper-validator-identifier": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -295,9 +295,9 @@ } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.0.tgz", - "integrity": "sha512-9cUznXMG0+FxRuJfvL82QlTqIzhVW9sL0KjMPHhAOOvpQGL8QtdxnBKILjBqxlHyliz0yCa1G903ZXI/FuHy2w==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz", + "integrity": "sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ==", "dev": true, "engines": { "node": ">=6.9.0" @@ -338,12 +338,12 @@ } }, "node_modules/@babel/helper-simple-access": { - "version": "7.22.5", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.22.5.tgz", - "integrity": "sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz", + "integrity": "sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ==", "dev": true, "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -362,12 +362,12 @@ } }, "node_modules/@babel/helper-split-export-declaration": { - "version": "7.22.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz", - "integrity": "sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz", + "integrity": "sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q==", "dev": true, "dependencies": { - "@babel/types": "^7.22.5" + "@babel/types": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -383,9 +383,9 @@ } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.22.20.tgz", - "integrity": "sha512-Y4OZ+ytlatR8AI+8KZfKuL5urKp7qey08ha31L8b3BwewJAoJamTzyvxPR/5D+KkdJCGPq/+8TukHBlY10FX9A==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz", + "integrity": "sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA==", "dev": true, "engines": { "node": ">=6.9.0" @@ -401,40 +401,40 @@ } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.22.20", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.22.20.tgz", - "integrity": "sha512-pms/UwkOpnQe/PDAEdV/d7dVCoBbB+R4FvYoHGZz+4VPcg7RtYy2KP7S2lbuWM6FCSgob5wshfGESbC/hzNXZw==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.24.5.tgz", + "integrity": "sha512-/xxzuNvgRl4/HLNKvnFwdhdgN3cpLxgLROeLDl83Yx0AJ1SGvq1ak0OszTOjDfiB8Vx03eJbeDWh9r+jCCWttw==", "dev": true, "dependencies": { - "@babel/helper-function-name": "^7.22.5", - "@babel/template": "^7.22.15", - "@babel/types": "^7.22.19" + "@babel/helper-function-name": "^7.23.0", + "@babel/template": "^7.24.0", + "@babel/types": "^7.24.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.4.tgz", - "integrity": "sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.24.5.tgz", + "integrity": "sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q==", "dev": true, "dependencies": { "@babel/template": "^7.24.0", - "@babel/traverse": "^7.24.1", - "@babel/types": "^7.24.0" + "@babel/traverse": "^7.24.5", + "@babel/types": "^7.24.5" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/highlight": { - "version": "7.24.2", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.2.tgz", - "integrity": "sha512-Yac1ao4flkTxTteCDZLEvdxg2fZfz1v8M4QpaGypq/WPDqg3ijHYbDfs+LG5hvzSoqaSZ9/Z9lKSP3CjZjv+pA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.24.5.tgz", + "integrity": "sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw==", "dev": true, "dependencies": { - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-validator-identifier": "^7.24.5", "chalk": "^2.4.2", "js-tokens": "^4.0.0", "picocolors": "^1.0.0" @@ -444,9 +444,9 @@ } }, "node_modules/@babel/parser": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.4.tgz", - "integrity": "sha512-zTvEBcghmeBma9QIGunWevvBAp4/Qu9Bdq+2k0Ot4fVMD6v3dsC9WOcRSKk7tRRyBM/53yKMJko9xOatGQAwSg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.24.5.tgz", + "integrity": "sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg==", "dev": true, "bin": { "parser": "bin/babel-parser.js" @@ -456,13 +456,13 @@ } }, "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.4.tgz", - "integrity": "sha512-qpl6vOOEEzTLLcsuqYYo8yDtrTocmu2xkGvgNebvPjT9DTtfFYGmgDqY+rBYXNlqL4s9qLDn6xkrJv4RxAPiTA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.24.5.tgz", + "integrity": "sha512-LdXRi1wEMTrHVR4Zc9F8OewC3vdm5h4QB6L71zy6StmYeqGi1b3ttIO8UC+BfZKcH9jdr4aI249rBkm+3+YvHw==", "dev": true, "dependencies": { "@babel/helper-environment-visitor": "^7.22.20", - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -832,12 +832,12 @@ } }, "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.4.tgz", - "integrity": "sha512-nIFUZIpGKDf9O9ttyRXpHFpKC+X3Y5mtshZONuEUYBomAKoM4y029Jr+uB1bHGPhNmK8YXHevDtKDOLmtRrp6g==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.5.tgz", + "integrity": "sha512-sMfBc3OxghjC95BkYrYocHL3NaOplrcaunblzwXhGmlPwpmfsxr4vK+mBBt49r+S240vahmv+kUxkeKgs+haCw==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -880,18 +880,18 @@ } }, "node_modules/@babel/plugin-transform-classes": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.1.tgz", - "integrity": "sha512-ZTIe3W7UejJd3/3R4p7ScyyOoafetUShSf4kCqV0O7F/RiHxVj/wRaRnQlrGwflvcehNA8M42HkAiEDYZu2F1Q==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.5.tgz", + "integrity": "sha512-gWkLP25DFj2dwe9Ck8uwMOpko4YsqyfZJrOmqqcegeDYEbp7rmn4U6UQZNj08UF6MaX39XenSpKRCvpDRBtZ7Q==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", "@babel/helper-compilation-targets": "^7.23.6", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", - "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-plugin-utils": "^7.24.5", "@babel/helper-replace-supers": "^7.24.1", - "@babel/helper-split-export-declaration": "^7.22.6", + "@babel/helper-split-export-declaration": "^7.24.5", "globals": "^11.1.0" }, "engines": { @@ -918,12 +918,12 @@ } }, "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.1.tgz", - "integrity": "sha512-ow8jciWqNxR3RYbSNVuF4U2Jx130nwnBnhRw6N6h1bOejNkABmcI5X5oz29K4alWX7vf1C+o6gtKXikzRKkVdw==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.5.tgz", + "integrity": "sha512-SZuuLyfxvsm+Ah57I/i1HVjveBENYK9ue8MJ7qkc7ndoNjqquJiElzA7f5yaAXjyW2hKojosOTAQQRX50bPSVg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -1237,15 +1237,15 @@ } }, "node_modules/@babel/plugin-transform-object-rest-spread": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.1.tgz", - "integrity": "sha512-XjD5f0YqOtebto4HGISLNfiNMTTs6tbkFf2TOqJlYKYmbo+mN9Dnpl4SRoofiziuOWMIyq3sZEUqLo3hLITFEA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.5.tgz", + "integrity": "sha512-7EauQHszLGM3ay7a161tTQH7fj+3vVM/gThlz5HpFtnygTxjrlvoeq7MPVA1Vy9Q555OB8SnAOsMkLShNkkrHA==", "dev": true, "dependencies": { "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-plugin-utils": "^7.24.5", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.24.1" + "@babel/plugin-transform-parameters": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -1287,12 +1287,12 @@ } }, "node_modules/@babel/plugin-transform-optional-chaining": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.1.tgz", - "integrity": "sha512-n03wmDt+987qXwAgcBlnUUivrZBPZ8z1plL0YvgQalLm+ZE5BMhGm94jhxXtA1wzv1Cu2aaOv1BM9vbVttrzSg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.5.tgz", + "integrity": "sha512-xWCkmwKT+ihmA6l7SSTpk8e4qQl/274iNbSKRRS8mpqFR32ksy36+a+LWY8OXCCEefF8WFlnOHVsaDI2231wBg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-plugin-utils": "^7.24.5", "@babel/helper-skip-transparent-expression-wrappers": "^7.22.5", "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, @@ -1304,12 +1304,12 @@ } }, "node_modules/@babel/plugin-transform-parameters": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.1.tgz", - "integrity": "sha512-8Jl6V24g+Uw5OGPeWNKrKqXPDw2YDjLc53ojwfMcKwlEoETKU9rU0mHUtcg9JntWI/QYzGAXNWEcVHZ+fR+XXg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.5.tgz", + "integrity": "sha512-9Co00MqZ2aoky+4j2jhofErthm6QVLKbpQrvz20c3CH9KQCLHyNB+t2ya4/UrRpQGR+Wrwjg9foopoeSdnHOkA==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -1335,14 +1335,14 @@ } }, "node_modules/@babel/plugin-transform-private-property-in-object": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.1.tgz", - "integrity": "sha512-pTHxDVa0BpUbvAgX3Gat+7cSciXqUcY9j2VZKTbSB6+VQGpNgNO9ailxTGHSXlqOnX1Hcx1Enme2+yv7VqP9bg==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.5.tgz", + "integrity": "sha512-JM4MHZqnWR04jPMujQDTBVRnqxpLLpx2tkn7iPn+Hmsc0Gnb79yvRWOkvqFOx3Z7P7VxiRIR22c4eGSNj87OBQ==", "dev": true, "dependencies": { "@babel/helper-annotate-as-pure": "^7.22.5", - "@babel/helper-create-class-features-plugin": "^7.24.1", - "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-create-class-features-plugin": "^7.24.5", + "@babel/helper-plugin-utils": "^7.24.5", "@babel/plugin-syntax-private-property-in-object": "^7.14.5" }, "engines": { @@ -1460,12 +1460,12 @@ } }, "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.1.tgz", - "integrity": "sha512-CBfU4l/A+KruSUoW+vTQthwcAdwuqbpRNB8HQKlZABwHRhsdHZ9fezp4Sn18PeAlYxTNiLMlx4xUBV3AWfg1BA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.5.tgz", + "integrity": "sha512-UTGnhYVZtTAjdwOTzT+sCyXmTn8AhaxOS/MjG9REclZ6ULHWF9KoCZur0HSGU7hk8PdBFKKbYe6+gqdXWz84Jg==", "dev": true, "dependencies": { - "@babel/helper-plugin-utils": "^7.24.0" + "@babel/helper-plugin-utils": "^7.24.5" }, "engines": { "node": ">=6.9.0" @@ -1538,16 +1538,16 @@ } }, "node_modules/@babel/preset-env": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.4.tgz", - "integrity": "sha512-7Kl6cSmYkak0FK/FXjSEnLJ1N9T/WA2RkMhu17gZ/dsxKJUuTYNIylahPTzqpLyJN4WhDif8X0XK1R8Wsguo/A==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.24.5.tgz", + "integrity": "sha512-UGK2ifKtcC8i5AI4cH+sbLLuLc2ktYSFJgBAXorKAsHUZmrQ1q6aQ6i3BvU24wWs2AAKqQB6kq3N9V9Gw1HiMQ==", "dev": true, "dependencies": { "@babel/compat-data": "^7.24.4", "@babel/helper-compilation-targets": "^7.23.6", - "@babel/helper-plugin-utils": "^7.24.0", + "@babel/helper-plugin-utils": "^7.24.5", "@babel/helper-validator-option": "^7.23.5", - "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.4", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.24.5", "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.24.1", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.24.1", "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.24.1", @@ -1574,12 +1574,12 @@ "@babel/plugin-transform-async-generator-functions": "^7.24.3", "@babel/plugin-transform-async-to-generator": "^7.24.1", "@babel/plugin-transform-block-scoped-functions": "^7.24.1", - "@babel/plugin-transform-block-scoping": "^7.24.4", + "@babel/plugin-transform-block-scoping": "^7.24.5", "@babel/plugin-transform-class-properties": "^7.24.1", "@babel/plugin-transform-class-static-block": "^7.24.4", - "@babel/plugin-transform-classes": "^7.24.1", + "@babel/plugin-transform-classes": "^7.24.5", "@babel/plugin-transform-computed-properties": "^7.24.1", - "@babel/plugin-transform-destructuring": "^7.24.1", + "@babel/plugin-transform-destructuring": "^7.24.5", "@babel/plugin-transform-dotall-regex": "^7.24.1", "@babel/plugin-transform-duplicate-keys": "^7.24.1", "@babel/plugin-transform-dynamic-import": "^7.24.1", @@ -1599,13 +1599,13 @@ "@babel/plugin-transform-new-target": "^7.24.1", "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.1", "@babel/plugin-transform-numeric-separator": "^7.24.1", - "@babel/plugin-transform-object-rest-spread": "^7.24.1", + "@babel/plugin-transform-object-rest-spread": "^7.24.5", "@babel/plugin-transform-object-super": "^7.24.1", "@babel/plugin-transform-optional-catch-binding": "^7.24.1", - "@babel/plugin-transform-optional-chaining": "^7.24.1", - "@babel/plugin-transform-parameters": "^7.24.1", + "@babel/plugin-transform-optional-chaining": "^7.24.5", + "@babel/plugin-transform-parameters": "^7.24.5", "@babel/plugin-transform-private-methods": "^7.24.1", - "@babel/plugin-transform-private-property-in-object": "^7.24.1", + "@babel/plugin-transform-private-property-in-object": "^7.24.5", "@babel/plugin-transform-property-literals": "^7.24.1", "@babel/plugin-transform-regenerator": "^7.24.1", "@babel/plugin-transform-reserved-words": "^7.24.1", @@ -1613,7 +1613,7 @@ "@babel/plugin-transform-spread": "^7.24.1", "@babel/plugin-transform-sticky-regex": "^7.24.1", "@babel/plugin-transform-template-literals": "^7.24.1", - "@babel/plugin-transform-typeof-symbol": "^7.24.1", + "@babel/plugin-transform-typeof-symbol": "^7.24.5", "@babel/plugin-transform-unicode-escapes": "^7.24.1", "@babel/plugin-transform-unicode-property-regex": "^7.24.1", "@babel/plugin-transform-unicode-regex": "^7.24.1", @@ -1653,9 +1653,9 @@ "dev": true }, "node_modules/@babel/runtime": { - "version": "7.24.4", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.4.tgz", - "integrity": "sha512-dkxf7+hn8mFBwKjs9bvBlArzLVxVbS8usaPUDd5p2a9JCL9tB8OaOVN1isD4+Xyk4ns89/xeOmbQvgdK7IIVdA==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.24.5.tgz", + "integrity": "sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g==", "dev": true, "dependencies": { "regenerator-runtime": "^0.14.0" @@ -1679,19 +1679,19 @@ } }, "node_modules/@babel/traverse": { - "version": "7.24.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.1.tgz", - "integrity": "sha512-xuU6o9m68KeqZbQuDt2TcKSxUw/mrsvavlEqQ1leZ/B+C9tk6E4sRWy97WaXgvq5E+nU3cXMxv3WKOCanVMCmQ==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.24.5.tgz", + "integrity": "sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA==", "dev": true, "dependencies": { - "@babel/code-frame": "^7.24.1", - "@babel/generator": "^7.24.1", + "@babel/code-frame": "^7.24.2", + "@babel/generator": "^7.24.5", "@babel/helper-environment-visitor": "^7.22.20", "@babel/helper-function-name": "^7.23.0", "@babel/helper-hoist-variables": "^7.22.5", - "@babel/helper-split-export-declaration": "^7.22.6", - "@babel/parser": "^7.24.1", - "@babel/types": "^7.24.0", + "@babel/helper-split-export-declaration": "^7.24.5", + "@babel/parser": "^7.24.5", + "@babel/types": "^7.24.5", "debug": "^4.3.1", "globals": "^11.1.0" }, @@ -1700,13 +1700,13 @@ } }, "node_modules/@babel/types": { - "version": "7.24.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.0.tgz", - "integrity": "sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==", + "version": "7.24.5", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.24.5.tgz", + "integrity": "sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ==", "dev": true, "dependencies": { - "@babel/helper-string-parser": "^7.23.4", - "@babel/helper-validator-identifier": "^7.22.20", + "@babel/helper-string-parser": "^7.24.1", + "@babel/helper-validator-identifier": "^7.24.5", "to-fast-properties": "^2.0.0" }, "engines": { @@ -2372,9 +2372,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001613", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001613.tgz", - "integrity": "sha512-BNjJULJfOONQERivfxte7alLfeLW4QnwHvNW4wEcLEbXfV6VSCYvr+REbf2Sojv8tC1THpjPXBxWgDbq4NtLWg==", + "version": "1.0.30001614", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001614.tgz", + "integrity": "sha512-jmZQ1VpmlRwHgdP1/uiKzgiAuGOfLEJsYFP4+GBou/QQ4U6IOJCB4NP1c+1p9RGLpwObcT94jA5/uO+F1vBbog==", "dev": true, "funding": [ { @@ -2746,9 +2746,9 @@ "dev": true }, "node_modules/electron-to-chromium": { - "version": "1.4.750", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.750.tgz", - "integrity": "sha512-9ItEpeu15hW5m8jKdriL+BQrgwDTXEL9pn4SkillWFu73ZNNNQ2BKKLS+ZHv2vC9UkNhosAeyfxOf/5OSeTCPA==", + "version": "1.4.751", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.751.tgz", + "integrity": "sha512-2DEPi++qa89SMGRhufWTiLmzqyuGmNF3SK4+PQetW1JKiZdEpF4XQonJXJCzyuYSA6mauiMhbyVhqYAP45Hvfw==", "dev": true }, "node_modules/elliptic": { diff --git a/build/package.json b/build/package.json index 09ce8e3c9..daaf2b88d 100644 --- a/build/package.json +++ b/build/package.json @@ -1,6 +1,6 @@ { "name": "purecloud-platform-client-v2", - "version": "192.1.0", + "version": "192.2.0", "description": "A JavaScript library to interface with the PureCloud Platform API", "license": "MIT", "main": "dist/node/purecloud-platform-client-v2.js", diff --git a/build/src/purecloud-platform-client-v2/ApiClient.js b/build/src/purecloud-platform-client-v2/ApiClient.js index f04aa4111..e16a8923d 100644 --- a/build/src/purecloud-platform-client-v2/ApiClient.js +++ b/build/src/purecloud-platform-client-v2/ApiClient.js @@ -4,7 +4,7 @@ import { default as qs } from 'qs'; /** * @module purecloud-platform-client-v2/ApiClient - * @version 192.1.0 + * @version 192.2.0 */ class ApiClient { /** diff --git a/build/src/purecloud-platform-client-v2/PureCloudRegionHosts.js b/build/src/purecloud-platform-client-v2/PureCloudRegionHosts.js index c29d3a6a2..77ba0ed80 100644 --- a/build/src/purecloud-platform-client-v2/PureCloudRegionHosts.js +++ b/build/src/purecloud-platform-client-v2/PureCloudRegionHosts.js @@ -11,4 +11,7 @@ export default { 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', }; diff --git a/build/src/purecloud-platform-client-v2/api/AlertingApi.js b/build/src/purecloud-platform-client-v2/api/AlertingApi.js index e15259ad2..005a53d34 100644 --- a/build/src/purecloud-platform-client-v2/api/AlertingApi.js +++ b/build/src/purecloud-platform-client-v2/api/AlertingApi.js @@ -5,7 +5,7 @@ class AlertingApi { /** * Alerting service. * @module purecloud-platform-client-v2/api/AlertingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js b/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js index 29ed15249..dedd5524e 100644 --- a/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js +++ b/build/src/purecloud-platform-client-v2/api/AnalyticsApi.js @@ -5,7 +5,7 @@ class AnalyticsApi { /** * Analytics service. * @module purecloud-platform-client-v2/api/AnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ArchitectApi.js b/build/src/purecloud-platform-client-v2/api/ArchitectApi.js index 7b41ad92c..ba1c138e7 100644 --- a/build/src/purecloud-platform-client-v2/api/ArchitectApi.js +++ b/build/src/purecloud-platform-client-v2/api/ArchitectApi.js @@ -5,7 +5,7 @@ class ArchitectApi { /** * Architect service. * @module purecloud-platform-client-v2/api/ArchitectApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/AuditApi.js b/build/src/purecloud-platform-client-v2/api/AuditApi.js index 59c9779ae..176d67fbb 100644 --- a/build/src/purecloud-platform-client-v2/api/AuditApi.js +++ b/build/src/purecloud-platform-client-v2/api/AuditApi.js @@ -5,7 +5,7 @@ class AuditApi { /** * Audit service. * @module purecloud-platform-client-v2/api/AuditApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js b/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js index 0e4ff4582..bf43ebb05 100644 --- a/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js +++ b/build/src/purecloud-platform-client-v2/api/AuthorizationApi.js @@ -5,7 +5,7 @@ class AuthorizationApi { /** * Authorization service. * @module purecloud-platform-client-v2/api/AuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/BillingApi.js b/build/src/purecloud-platform-client-v2/api/BillingApi.js index a5a27369b..14adfe1e5 100644 --- a/build/src/purecloud-platform-client-v2/api/BillingApi.js +++ b/build/src/purecloud-platform-client-v2/api/BillingApi.js @@ -5,7 +5,7 @@ class BillingApi { /** * Billing service. * @module purecloud-platform-client-v2/api/BillingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js b/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js index 2d128df33..aff1f788d 100644 --- a/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +++ b/build/src/purecloud-platform-client-v2/api/CarrierServicesApi.js @@ -5,7 +5,7 @@ class CarrierServicesApi { /** * CarrierServices service. * @module purecloud-platform-client-v2/api/CarrierServicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ChatApi.js b/build/src/purecloud-platform-client-v2/api/ChatApi.js index 6b7ad1e42..4692bcbdb 100644 --- a/build/src/purecloud-platform-client-v2/api/ChatApi.js +++ b/build/src/purecloud-platform-client-v2/api/ChatApi.js @@ -5,7 +5,7 @@ class ChatApi { /** * Chat service. * @module purecloud-platform-client-v2/api/ChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/CoachingApi.js b/build/src/purecloud-platform-client-v2/api/CoachingApi.js index 928d5b9ef..0fe2471db 100644 --- a/build/src/purecloud-platform-client-v2/api/CoachingApi.js +++ b/build/src/purecloud-platform-client-v2/api/CoachingApi.js @@ -5,7 +5,7 @@ class CoachingApi { /** * Coaching service. * @module purecloud-platform-client-v2/api/CoachingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js b/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js index 66140fc56..f21b58588 100644 --- a/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js +++ b/build/src/purecloud-platform-client-v2/api/ContentManagementApi.js @@ -5,7 +5,7 @@ class ContentManagementApi { /** * ContentManagement service. * @module purecloud-platform-client-v2/api/ContentManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ConversationsApi.js b/build/src/purecloud-platform-client-v2/api/ConversationsApi.js index 5d4d39e6a..80e0120bc 100644 --- a/build/src/purecloud-platform-client-v2/api/ConversationsApi.js +++ b/build/src/purecloud-platform-client-v2/api/ConversationsApi.js @@ -5,7 +5,7 @@ class ConversationsApi { /** * Conversations service. * @module purecloud-platform-client-v2/api/ConversationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js b/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js index 8d91e62c9..1fbc3c392 100644 --- a/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +++ b/build/src/purecloud-platform-client-v2/api/DataExtensionsApi.js @@ -5,7 +5,7 @@ class DataExtensionsApi { /** * DataExtensions service. * @module purecloud-platform-client-v2/api/DataExtensionsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/DownloadsApi.js b/build/src/purecloud-platform-client-v2/api/DownloadsApi.js index 736297bd3..5b79de68d 100644 --- a/build/src/purecloud-platform-client-v2/api/DownloadsApi.js +++ b/build/src/purecloud-platform-client-v2/api/DownloadsApi.js @@ -5,7 +5,7 @@ class DownloadsApi { /** * Downloads service. * @module purecloud-platform-client-v2/api/DownloadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/EmailsApi.js b/build/src/purecloud-platform-client-v2/api/EmailsApi.js index 616188082..6ed146f28 100644 --- a/build/src/purecloud-platform-client-v2/api/EmailsApi.js +++ b/build/src/purecloud-platform-client-v2/api/EmailsApi.js @@ -5,7 +5,7 @@ class EmailsApi { /** * Emails service. * @module purecloud-platform-client-v2/api/EmailsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/EventsApi.js b/build/src/purecloud-platform-client-v2/api/EventsApi.js index b5139eb86..ade806852 100644 --- a/build/src/purecloud-platform-client-v2/api/EventsApi.js +++ b/build/src/purecloud-platform-client-v2/api/EventsApi.js @@ -5,7 +5,7 @@ class EventsApi { /** * Events service. * @module purecloud-platform-client-v2/api/EventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js b/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js index 84d2e4743..2cf848bd8 100644 --- a/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +++ b/build/src/purecloud-platform-client-v2/api/ExternalContactsApi.js @@ -5,7 +5,7 @@ class ExternalContactsApi { /** * ExternalContacts service. * @module purecloud-platform-client-v2/api/ExternalContactsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/FaxApi.js b/build/src/purecloud-platform-client-v2/api/FaxApi.js index 0b2109b4a..aca2d974e 100644 --- a/build/src/purecloud-platform-client-v2/api/FaxApi.js +++ b/build/src/purecloud-platform-client-v2/api/FaxApi.js @@ -5,7 +5,7 @@ class FaxApi { /** * Fax service. * @module purecloud-platform-client-v2/api/FaxApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/FlowsApi.js b/build/src/purecloud-platform-client-v2/api/FlowsApi.js index 65e66f8ba..426e87e57 100644 --- a/build/src/purecloud-platform-client-v2/api/FlowsApi.js +++ b/build/src/purecloud-platform-client-v2/api/FlowsApi.js @@ -5,7 +5,7 @@ class FlowsApi { /** * Flows service. * @module purecloud-platform-client-v2/api/FlowsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/GamificationApi.js b/build/src/purecloud-platform-client-v2/api/GamificationApi.js index 0dfec620b..621fa96b6 100644 --- a/build/src/purecloud-platform-client-v2/api/GamificationApi.js +++ b/build/src/purecloud-platform-client-v2/api/GamificationApi.js @@ -5,7 +5,7 @@ class GamificationApi { /** * Gamification service. * @module purecloud-platform-client-v2/api/GamificationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js b/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js index 16be23f4a..e7d1e0d91 100644 --- a/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +++ b/build/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js @@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi { /** * GeneralDataProtectionRegulation service. * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/GeolocationApi.js b/build/src/purecloud-platform-client-v2/api/GeolocationApi.js index 6e3771814..9dc14b085 100644 --- a/build/src/purecloud-platform-client-v2/api/GeolocationApi.js +++ b/build/src/purecloud-platform-client-v2/api/GeolocationApi.js @@ -5,7 +5,7 @@ class GeolocationApi { /** * Geolocation service. * @module purecloud-platform-client-v2/api/GeolocationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/GreetingsApi.js b/build/src/purecloud-platform-client-v2/api/GreetingsApi.js index 9042be03b..40d9ec496 100644 --- a/build/src/purecloud-platform-client-v2/api/GreetingsApi.js +++ b/build/src/purecloud-platform-client-v2/api/GreetingsApi.js @@ -5,7 +5,7 @@ class GreetingsApi { /** * Greetings service. * @module purecloud-platform-client-v2/api/GreetingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/GroupsApi.js b/build/src/purecloud-platform-client-v2/api/GroupsApi.js index ab1f525fd..633d1774d 100644 --- a/build/src/purecloud-platform-client-v2/api/GroupsApi.js +++ b/build/src/purecloud-platform-client-v2/api/GroupsApi.js @@ -5,7 +5,7 @@ class GroupsApi { /** * Groups service. * @module purecloud-platform-client-v2/api/GroupsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js b/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js index 9f467e7a1..a3a23b292 100644 --- a/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +++ b/build/src/purecloud-platform-client-v2/api/IdentityProviderApi.js @@ -5,7 +5,7 @@ class IdentityProviderApi { /** * IdentityProvider service. * @module purecloud-platform-client-v2/api/IdentityProviderApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js b/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js index 7522f845c..43cb4b0a2 100644 --- a/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +++ b/build/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js @@ -5,7 +5,7 @@ class InfrastructureAsCodeApi { /** * InfrastructureAsCode service. * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js b/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js index c9d755048..e4c49c2e6 100644 --- a/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js +++ b/build/src/purecloud-platform-client-v2/api/IntegrationsApi.js @@ -5,7 +5,7 @@ class IntegrationsApi { /** * Integrations service. * @module purecloud-platform-client-v2/api/IntegrationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/JourneyApi.js b/build/src/purecloud-platform-client-v2/api/JourneyApi.js index 14af32f93..b192a9871 100644 --- a/build/src/purecloud-platform-client-v2/api/JourneyApi.js +++ b/build/src/purecloud-platform-client-v2/api/JourneyApi.js @@ -5,7 +5,7 @@ class JourneyApi { /** * Journey service. * @module purecloud-platform-client-v2/api/JourneyApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js b/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js index b06061b3b..19f561baa 100644 --- a/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js +++ b/build/src/purecloud-platform-client-v2/api/KnowledgeApi.js @@ -5,7 +5,7 @@ class KnowledgeApi { /** * Knowledge service. * @module purecloud-platform-client-v2/api/KnowledgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js b/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js index 404294d1c..3da14e596 100644 --- a/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +++ b/build/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js @@ -5,7 +5,7 @@ class LanguageUnderstandingApi { /** * LanguageUnderstanding service. * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LanguagesApi.js b/build/src/purecloud-platform-client-v2/api/LanguagesApi.js index 3de3df1ca..fee273a85 100644 --- a/build/src/purecloud-platform-client-v2/api/LanguagesApi.js +++ b/build/src/purecloud-platform-client-v2/api/LanguagesApi.js @@ -5,7 +5,7 @@ class LanguagesApi { /** * Languages service. * @module purecloud-platform-client-v2/api/LanguagesApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LearningApi.js b/build/src/purecloud-platform-client-v2/api/LearningApi.js index 695da4d21..7fb7fc439 100644 --- a/build/src/purecloud-platform-client-v2/api/LearningApi.js +++ b/build/src/purecloud-platform-client-v2/api/LearningApi.js @@ -5,7 +5,7 @@ class LearningApi { /** * Learning service. * @module purecloud-platform-client-v2/api/LearningApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LicenseApi.js b/build/src/purecloud-platform-client-v2/api/LicenseApi.js index 59b227e97..7eb21dd6d 100644 --- a/build/src/purecloud-platform-client-v2/api/LicenseApi.js +++ b/build/src/purecloud-platform-client-v2/api/LicenseApi.js @@ -5,7 +5,7 @@ class LicenseApi { /** * License service. * @module purecloud-platform-client-v2/api/LicenseApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LocationsApi.js b/build/src/purecloud-platform-client-v2/api/LocationsApi.js index 605bfa6fb..5a15fa03c 100644 --- a/build/src/purecloud-platform-client-v2/api/LocationsApi.js +++ b/build/src/purecloud-platform-client-v2/api/LocationsApi.js @@ -5,7 +5,7 @@ class LocationsApi { /** * Locations service. * @module purecloud-platform-client-v2/api/LocationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js b/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js index 22d12bea8..e2b4bbbb5 100644 --- a/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js +++ b/build/src/purecloud-platform-client-v2/api/LogCaptureApi.js @@ -5,7 +5,7 @@ class LogCaptureApi { /** * LogCapture service. * @module purecloud-platform-client-v2/api/LogCaptureApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/MessagingApi.js b/build/src/purecloud-platform-client-v2/api/MessagingApi.js index a15816ecb..3d4029c13 100644 --- a/build/src/purecloud-platform-client-v2/api/MessagingApi.js +++ b/build/src/purecloud-platform-client-v2/api/MessagingApi.js @@ -5,7 +5,7 @@ class MessagingApi { /** * Messaging service. * @module purecloud-platform-client-v2/api/MessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js b/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js index ded3f8df9..9a3e4544d 100644 --- a/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +++ b/build/src/purecloud-platform-client-v2/api/MobileDevicesApi.js @@ -5,7 +5,7 @@ class MobileDevicesApi { /** * MobileDevices service. * @module purecloud-platform-client-v2/api/MobileDevicesApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/NotificationsApi.js b/build/src/purecloud-platform-client-v2/api/NotificationsApi.js index 45ead90b1..33919c809 100644 --- a/build/src/purecloud-platform-client-v2/api/NotificationsApi.js +++ b/build/src/purecloud-platform-client-v2/api/NotificationsApi.js @@ -5,7 +5,7 @@ class NotificationsApi { /** * Notifications service. * @module purecloud-platform-client-v2/api/NotificationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/OAuthApi.js b/build/src/purecloud-platform-client-v2/api/OAuthApi.js index 58e8f46d5..9f75af765 100644 --- a/build/src/purecloud-platform-client-v2/api/OAuthApi.js +++ b/build/src/purecloud-platform-client-v2/api/OAuthApi.js @@ -5,7 +5,7 @@ class OAuthApi { /** * OAuth service. * @module purecloud-platform-client-v2/api/OAuthApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ObjectsApi.js b/build/src/purecloud-platform-client-v2/api/ObjectsApi.js index 0a8db446e..6f93e6d28 100644 --- a/build/src/purecloud-platform-client-v2/api/ObjectsApi.js +++ b/build/src/purecloud-platform-client-v2/api/ObjectsApi.js @@ -5,7 +5,7 @@ class ObjectsApi { /** * Objects service. * @module purecloud-platform-client-v2/api/ObjectsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js b/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js index 1dcb5ba09..f6706d082 100644 --- a/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +++ b/build/src/purecloud-platform-client-v2/api/OperationalEventsApi.js @@ -5,7 +5,7 @@ class OperationalEventsApi { /** * OperationalEvents service. * @module purecloud-platform-client-v2/api/OperationalEventsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/OrganizationApi.js b/build/src/purecloud-platform-client-v2/api/OrganizationApi.js index 1fe622637..f8a6c438d 100644 --- a/build/src/purecloud-platform-client-v2/api/OrganizationApi.js +++ b/build/src/purecloud-platform-client-v2/api/OrganizationApi.js @@ -5,7 +5,7 @@ class OrganizationApi { /** * Organization service. * @module purecloud-platform-client-v2/api/OrganizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js b/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js index d3fb4d770..53b1f8252 100644 --- a/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +++ b/build/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js @@ -5,7 +5,7 @@ class OrganizationAuthorizationApi { /** * OrganizationAuthorization service. * @module purecloud-platform-client-v2/api/OrganizationAuthorizationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/OutboundApi.js b/build/src/purecloud-platform-client-v2/api/OutboundApi.js index a5b8351ac..b7ba8ae30 100644 --- a/build/src/purecloud-platform-client-v2/api/OutboundApi.js +++ b/build/src/purecloud-platform-client-v2/api/OutboundApi.js @@ -5,7 +5,7 @@ class OutboundApi { /** * Outbound service. * @module purecloud-platform-client-v2/api/OutboundApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/PresenceApi.js b/build/src/purecloud-platform-client-v2/api/PresenceApi.js index 5171dce4d..cef6d43c8 100644 --- a/build/src/purecloud-platform-client-v2/api/PresenceApi.js +++ b/build/src/purecloud-platform-client-v2/api/PresenceApi.js @@ -5,7 +5,7 @@ class PresenceApi { /** * Presence service. * @module purecloud-platform-client-v2/api/PresenceApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js b/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js index 6b4400058..33d71f74b 100644 --- a/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +++ b/build/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js @@ -5,7 +5,7 @@ class ProcessAutomationApi { /** * ProcessAutomation service. * @module purecloud-platform-client-v2/api/ProcessAutomationApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/QualityApi.js b/build/src/purecloud-platform-client-v2/api/QualityApi.js index 22b8540bb..bce1c91e2 100644 --- a/build/src/purecloud-platform-client-v2/api/QualityApi.js +++ b/build/src/purecloud-platform-client-v2/api/QualityApi.js @@ -5,7 +5,7 @@ class QualityApi { /** * Quality service. * @module purecloud-platform-client-v2/api/QualityApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/RecordingApi.js b/build/src/purecloud-platform-client-v2/api/RecordingApi.js index 21b38d4ff..f217c998f 100644 --- a/build/src/purecloud-platform-client-v2/api/RecordingApi.js +++ b/build/src/purecloud-platform-client-v2/api/RecordingApi.js @@ -5,7 +5,7 @@ class RecordingApi { /** * Recording service. * @module purecloud-platform-client-v2/api/RecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js b/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js index 42e5867a9..be17de22e 100644 --- a/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +++ b/build/src/purecloud-platform-client-v2/api/ResponseManagementApi.js @@ -5,7 +5,7 @@ class ResponseManagementApi { /** * ResponseManagement service. * @module purecloud-platform-client-v2/api/ResponseManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/RoutingApi.js b/build/src/purecloud-platform-client-v2/api/RoutingApi.js index 08ac77a2e..437843c0d 100644 --- a/build/src/purecloud-platform-client-v2/api/RoutingApi.js +++ b/build/src/purecloud-platform-client-v2/api/RoutingApi.js @@ -5,7 +5,7 @@ class RoutingApi { /** * Routing service. * @module purecloud-platform-client-v2/api/RoutingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/SCIMApi.js b/build/src/purecloud-platform-client-v2/api/SCIMApi.js index dae3fecac..692239cfb 100644 --- a/build/src/purecloud-platform-client-v2/api/SCIMApi.js +++ b/build/src/purecloud-platform-client-v2/api/SCIMApi.js @@ -5,7 +5,7 @@ class SCIMApi { /** * SCIM service. * @module purecloud-platform-client-v2/api/SCIMApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js b/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js index 8efe66e7a..bbd14abc7 100644 --- a/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +++ b/build/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js @@ -5,7 +5,7 @@ class ScreenRecordingApi { /** * ScreenRecording service. * @module purecloud-platform-client-v2/api/ScreenRecordingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/ScriptsApi.js b/build/src/purecloud-platform-client-v2/api/ScriptsApi.js index a9b6ed824..702840b93 100644 --- a/build/src/purecloud-platform-client-v2/api/ScriptsApi.js +++ b/build/src/purecloud-platform-client-v2/api/ScriptsApi.js @@ -5,7 +5,7 @@ class ScriptsApi { /** * Scripts service. * @module purecloud-platform-client-v2/api/ScriptsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/SearchApi.js b/build/src/purecloud-platform-client-v2/api/SearchApi.js index 203f5dfe2..38e4bfc2f 100644 --- a/build/src/purecloud-platform-client-v2/api/SearchApi.js +++ b/build/src/purecloud-platform-client-v2/api/SearchApi.js @@ -5,7 +5,7 @@ class SearchApi { /** * Search service. * @module purecloud-platform-client-v2/api/SearchApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/SettingsApi.js b/build/src/purecloud-platform-client-v2/api/SettingsApi.js index d1b0a1a4a..71027a1d0 100644 --- a/build/src/purecloud-platform-client-v2/api/SettingsApi.js +++ b/build/src/purecloud-platform-client-v2/api/SettingsApi.js @@ -5,7 +5,7 @@ class SettingsApi { /** * Settings service. * @module purecloud-platform-client-v2/api/SettingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js b/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js index 796f990be..4fc598aed 100644 --- a/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +++ b/build/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js @@ -5,7 +5,7 @@ class SpeechTextAnalyticsApi { /** * SpeechTextAnalytics service. * @module purecloud-platform-client-v2/api/SpeechTextAnalyticsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/StationsApi.js b/build/src/purecloud-platform-client-v2/api/StationsApi.js index b410eb3c4..9cc9329d5 100644 --- a/build/src/purecloud-platform-client-v2/api/StationsApi.js +++ b/build/src/purecloud-platform-client-v2/api/StationsApi.js @@ -5,7 +5,7 @@ class StationsApi { /** * Stations service. * @module purecloud-platform-client-v2/api/StationsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/SuggestApi.js b/build/src/purecloud-platform-client-v2/api/SuggestApi.js index f6ca9a3bc..0e4d6250d 100644 --- a/build/src/purecloud-platform-client-v2/api/SuggestApi.js +++ b/build/src/purecloud-platform-client-v2/api/SuggestApi.js @@ -5,7 +5,7 @@ class SuggestApi { /** * Suggest service. * @module purecloud-platform-client-v2/api/SuggestApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js b/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js index d60fb903a..92893710b 100644 --- a/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js +++ b/build/src/purecloud-platform-client-v2/api/TaskManagementApi.js @@ -5,7 +5,7 @@ class TaskManagementApi { /** * TaskManagement service. * @module purecloud-platform-client-v2/api/TaskManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TeamsApi.js b/build/src/purecloud-platform-client-v2/api/TeamsApi.js index f048ba261..e3e58be23 100644 --- a/build/src/purecloud-platform-client-v2/api/TeamsApi.js +++ b/build/src/purecloud-platform-client-v2/api/TeamsApi.js @@ -5,7 +5,7 @@ class TeamsApi { /** * Teams service. * @module purecloud-platform-client-v2/api/TeamsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TelephonyApi.js b/build/src/purecloud-platform-client-v2/api/TelephonyApi.js index bb021b1ec..9f6500fbe 100644 --- a/build/src/purecloud-platform-client-v2/api/TelephonyApi.js +++ b/build/src/purecloud-platform-client-v2/api/TelephonyApi.js @@ -5,7 +5,7 @@ class TelephonyApi { /** * Telephony service. * @module purecloud-platform-client-v2/api/TelephonyApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js b/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js index 0db20af1f..03f467788 100644 --- a/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +++ b/build/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js @@ -5,7 +5,7 @@ class TelephonyProvidersEdgeApi { /** * TelephonyProvidersEdge service. * @module purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TextbotsApi.js b/build/src/purecloud-platform-client-v2/api/TextbotsApi.js index d1440fe49..6bd5dc4e5 100644 --- a/build/src/purecloud-platform-client-v2/api/TextbotsApi.js +++ b/build/src/purecloud-platform-client-v2/api/TextbotsApi.js @@ -5,7 +5,7 @@ class TextbotsApi { /** * Textbots service. * @module purecloud-platform-client-v2/api/TextbotsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/TokensApi.js b/build/src/purecloud-platform-client-v2/api/TokensApi.js index 54f2766e6..f47de984e 100644 --- a/build/src/purecloud-platform-client-v2/api/TokensApi.js +++ b/build/src/purecloud-platform-client-v2/api/TokensApi.js @@ -5,7 +5,7 @@ class TokensApi { /** * Tokens service. * @module purecloud-platform-client-v2/api/TokensApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/UploadsApi.js b/build/src/purecloud-platform-client-v2/api/UploadsApi.js index 1f95015ff..675429b5f 100644 --- a/build/src/purecloud-platform-client-v2/api/UploadsApi.js +++ b/build/src/purecloud-platform-client-v2/api/UploadsApi.js @@ -5,7 +5,7 @@ class UploadsApi { /** * Uploads service. * @module purecloud-platform-client-v2/api/UploadsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/UsageApi.js b/build/src/purecloud-platform-client-v2/api/UsageApi.js index 9e4be0663..55177ff44 100644 --- a/build/src/purecloud-platform-client-v2/api/UsageApi.js +++ b/build/src/purecloud-platform-client-v2/api/UsageApi.js @@ -5,7 +5,7 @@ class UsageApi { /** * Usage service. * @module purecloud-platform-client-v2/api/UsageApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js b/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js index 89307e609..acd3ee21a 100644 --- a/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +++ b/build/src/purecloud-platform-client-v2/api/UserRecordingsApi.js @@ -5,7 +5,7 @@ class UserRecordingsApi { /** * UserRecordings service. * @module purecloud-platform-client-v2/api/UserRecordingsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/UsersApi.js b/build/src/purecloud-platform-client-v2/api/UsersApi.js index 1e2cacdcd..aa881478b 100644 --- a/build/src/purecloud-platform-client-v2/api/UsersApi.js +++ b/build/src/purecloud-platform-client-v2/api/UsersApi.js @@ -5,7 +5,7 @@ class UsersApi { /** * Users service. * @module purecloud-platform-client-v2/api/UsersApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js b/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js index b5d498311..96b11186b 100644 --- a/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js +++ b/build/src/purecloud-platform-client-v2/api/UtilitiesApi.js @@ -5,7 +5,7 @@ class UtilitiesApi { /** * Utilities service. * @module purecloud-platform-client-v2/api/UtilitiesApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/VoicemailApi.js b/build/src/purecloud-platform-client-v2/api/VoicemailApi.js index d3d73dc4d..2b7b8c79f 100644 --- a/build/src/purecloud-platform-client-v2/api/VoicemailApi.js +++ b/build/src/purecloud-platform-client-v2/api/VoicemailApi.js @@ -5,7 +5,7 @@ class VoicemailApi { /** * Voicemail service. * @module purecloud-platform-client-v2/api/VoicemailApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/WebChatApi.js b/build/src/purecloud-platform-client-v2/api/WebChatApi.js index c9d9d018b..0649be385 100644 --- a/build/src/purecloud-platform-client-v2/api/WebChatApi.js +++ b/build/src/purecloud-platform-client-v2/api/WebChatApi.js @@ -5,7 +5,7 @@ class WebChatApi { /** * WebChat service. * @module purecloud-platform-client-v2/api/WebChatApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js b/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js index 08f2ce719..54531da70 100644 --- a/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +++ b/build/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js @@ -5,7 +5,7 @@ class WebDeploymentsApi { /** * WebDeployments service. * @module purecloud-platform-client-v2/api/WebDeploymentsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js b/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js index 412cd22d4..422823697 100644 --- a/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js +++ b/build/src/purecloud-platform-client-v2/api/WebMessagingApi.js @@ -5,7 +5,7 @@ class WebMessagingApi { /** * WebMessaging service. * @module purecloud-platform-client-v2/api/WebMessagingApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/WidgetsApi.js b/build/src/purecloud-platform-client-v2/api/WidgetsApi.js index debd3d384..fea854b0f 100644 --- a/build/src/purecloud-platform-client-v2/api/WidgetsApi.js +++ b/build/src/purecloud-platform-client-v2/api/WidgetsApi.js @@ -5,7 +5,7 @@ class WidgetsApi { /** * Widgets service. * @module purecloud-platform-client-v2/api/WidgetsApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js b/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js index 17ef1b015..5272eeb8a 100644 --- a/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +++ b/build/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js @@ -5,7 +5,7 @@ class WorkforceManagementApi { /** * WorkforceManagement service. * @module purecloud-platform-client-v2/api/WorkforceManagementApi - * @version 192.1.0 + * @version 192.2.0 */ /** diff --git a/build/src/purecloud-platform-client-v2/index.js b/build/src/purecloud-platform-client-v2/index.js index b4256a23a..80163fbcf 100644 --- a/build/src/purecloud-platform-client-v2/index.js +++ b/build/src/purecloud-platform-client-v2/index.js @@ -107,7 +107,7 @@ import WorkforceManagementApi from './api/WorkforceManagementApi.js'; * *

* @module purecloud-platform-client-v2/index - * @version 192.1.0 + * @version 192.2.0 */ class platformClient { constructor() { diff --git a/releaseNotes.md b/releaseNotes.md index b93fcbfef..2ccd44d58 100644 --- a/releaseNotes.md +++ b/releaseNotes.md @@ -6,116 +6,7 @@ Platform API version: 8026 # Major Changes (0 changes) -# Minor Changes (28 changes) - -**/api/v2/conversations/{conversationId}/utilizationlabel** (2 changes) - -* Path was added -* Operation PATCH was added - -**KnowledgeBaseReference** (1 change) - -* Optional property languageCode was added - -**InboundRoute** (1 change) - -* Optional property imapFolder was added - -**ExternalSource** (1 change) - -* id is no longer readonly - -**Conversation** (1 change) - -* Optional property utilizationLabelId was added - -**Settings** (1 change) - -* Optional property callbacksInheritRoutingFromInboundCall was added - -**CallConversation** (1 change) - -* Optional property utilizationLabelId was added - -**CallbackConversation** (1 change) - -* Optional property utilizationLabelId was added - -**ChatConversation** (1 change) - -* Optional property utilizationLabelId was added - -**CobrowseConversation** (1 change) - -* Optional property utilizationLabelId was added - -**EmailConversation** (1 change) - -* Optional property utilizationLabelId was added - -**MessageConversation** (1 change) - -* Optional property utilizationLabelId was added - -**ConversationBasic** (1 change) - -* Optional property utilizationLabelId was added - -**KnowledgeDocumentCopy** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentPresentation** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentFeedbackResponse** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentFeedback** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeDocumentView** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentFeedback** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentView** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentCopy** (1 change) - -* Optional property surfacingMethod was added - -**KnowledgeGuestDocumentPresentation** (1 change) - -* Optional property surfacingMethod was added - -**EmailErrorInfo** (1 change) - -* Model was added - -**ImapSettings** (1 change) - -* Model was added - -**InboundDomain** (1 change) - -* Optional property imapSettings was added - -**InboundDomainPatchRequest** (1 change) - -* Optional property imapSettings was added - -**ConversationUtilizationLabelUpdate** (1 change) - -* Model was added +# Minor Changes (0 changes) # Point Changes (0 changes) diff --git a/version.json b/version.json index dabcb9e2e..16ce4101d 100644 --- a/version.json +++ b/version.json @@ -1,9 +1,9 @@ { "major": 192, - "minor": 1, + "minor": 2, "point": 0, "prerelease": "", "apiVersion": 0, - "display": "192.1.0", - "displayFull": "192.1.0" + "display": "192.2.0", + "displayFull": "192.2.0" } \ No newline at end of file