purecloud-platform-client-v2 255.1.0 → 256.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +693 -93
  3. package/dist/web-amd/purecloud-platform-client-v2.js +693 -93
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +254 -94
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +254 -94
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +362 -30
  9. package/package.json +1 -1
  10. package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
  11. package/src/purecloud-platform-client-v2/api/AIStudioApi.js +1 -1
  12. package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
  13. package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
  14. package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
  15. package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
  16. package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +1 -1
  17. package/src/purecloud-platform-client-v2/api/ArchitectApi.js +35 -1
  18. package/src/purecloud-platform-client-v2/api/AssistantCopilotVariationsApi.js +1 -1
  19. package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
  20. package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
  21. package/src/purecloud-platform-client-v2/api/BackgroundAssistantApi.js +1 -1
  22. package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
  23. package/src/purecloud-platform-client-v2/api/BusinessRulesApi.js +1 -1
  24. package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
  25. package/src/purecloud-platform-client-v2/api/CaseManagementApi.js +1 -1
  26. package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
  27. package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
  28. package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
  29. package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -1
  30. package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
  31. package/src/purecloud-platform-client-v2/api/DataPrivacyApi.js +1 -1
  32. package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
  33. package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
  34. package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
  35. package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
  36. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +151 -1
  37. package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
  38. package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
  39. package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
  40. package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
  41. package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
  42. package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
  43. package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
  44. package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
  45. package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
  46. package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +3 -2
  47. package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
  49. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
  50. package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
  51. package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
  52. package/src/purecloud-platform-client-v2/api/LearningApi.js +2 -4
  53. package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
  54. package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
  55. package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
  56. package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
  57. package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
  58. package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
  59. package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
  60. package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
  61. package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +1 -1
  62. package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
  63. package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
  64. package/src/purecloud-platform-client-v2/api/OutboundApi.js +2 -2
  65. package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
  66. package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
  67. package/src/purecloud-platform-client-v2/api/QualityApi.js +1 -1
  68. package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
  69. package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
  70. package/src/purecloud-platform-client-v2/api/RoutingApi.js +1 -1
  71. package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
  72. package/src/purecloud-platform-client-v2/api/ScreenMonitoringApi.js +381 -0
  73. package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  80. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  89. package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  93. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  94. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  95. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  96. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  97. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +37 -1
  98. package/src/purecloud-platform-client-v2/index.js +7 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "255.1.0",
3
+ "version": "256.0.0",
4
4
  "description": "A JavaScript library to interface with the PureCloud Platform API",
5
5
  "license": "MIT",
6
6
  "main": "dist/node/purecloud-platform-client-v2.js",
@@ -5,7 +5,7 @@ import HttpRequestOptions from './HttpRequestOptions.js';
5
5
 
6
6
  /**
7
7
  * @module purecloud-platform-client-v2/ApiClient
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
  class ApiClient {
11
11
  /**
@@ -5,7 +5,7 @@ class AIStudioApi {
5
5
  /**
6
6
  * AIStudio service.
7
7
  * @module purecloud-platform-client-v2/api/AIStudioApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentAssistantsApi {
5
5
  /**
6
6
  * AgentAssistants service.
7
7
  * @module purecloud-platform-client-v2/api/AgentAssistantsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentCopilotApi {
5
5
  /**
6
6
  * AgentCopilot service.
7
7
  * @module purecloud-platform-client-v2/api/AgentCopilotApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AgentUIApi {
5
5
  /**
6
6
  * AgentUI service.
7
7
  * @module purecloud-platform-client-v2/api/AgentUIApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AlertingApi {
5
5
  /**
6
6
  * Alerting service.
7
7
  * @module purecloud-platform-client-v2/api/AlertingApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AnalyticsApi {
5
5
  /**
6
6
  * Analytics service.
7
7
  * @module purecloud-platform-client-v2/api/AnalyticsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ArchitectApi {
5
5
  /**
6
6
  * Architect service.
7
7
  * @module purecloud-platform-client-v2/api/ArchitectApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -2842,6 +2842,40 @@ class ArchitectApi {
2842
2842
  );
2843
2843
  }
2844
2844
 
2845
+ /**
2846
+ * Look up flows by ID
2847
+ * Returns only flows matching the specified ID(s). Returns an empty listing if no flows match the given IDs.
2848
+ * @param {Array.<String>} id Flow ID(s)
2849
+ * @param {Object} opts Optional parameters
2850
+ * @param {Number} opts.pageNumber Page number (default to 1)
2851
+ * @param {Number} opts.pageSize Page size (default to 25)
2852
+ * @param {String} opts.sortBy Sort by (default to id)
2853
+ * @param {String} opts.sortOrder Sort order (default to asc)
2854
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
2855
+ */
2856
+ getFlowsLookup(id, opts) {
2857
+ opts = opts || {};
2858
+
2859
+ // verify the required parameter 'id' is set
2860
+ if (id === undefined || id === null) {
2861
+ throw 'Missing the required parameter "id" when calling getFlowsLookup';
2862
+ }
2863
+
2864
+ return this.apiClient.callApi(
2865
+ '/api/v2/flows/lookup',
2866
+ 'GET',
2867
+ { },
2868
+ { 'id': this.apiClient.buildCollectionParam(id, 'multi'),'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'sortBy': opts['sortBy'],'sortOrder': opts['sortOrder'] },
2869
+ { },
2870
+ { },
2871
+ null,
2872
+ ['PureCloud OAuth'],
2873
+ ['application/json'],
2874
+ ['application/json'],
2875
+ opts['customHeaders']
2876
+ );
2877
+ }
2878
+
2845
2879
  /**
2846
2880
  * Get a flow milestone
2847
2881
  * Returns a specified flow milestone
@@ -5,7 +5,7 @@ class AssistantCopilotVariationsApi {
5
5
  /**
6
6
  * AssistantCopilotVariations service.
7
7
  * @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuditApi {
5
5
  /**
6
6
  * Audit service.
7
7
  * @module purecloud-platform-client-v2/api/AuditApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class AuthorizationApi {
5
5
  /**
6
6
  * Authorization service.
7
7
  * @module purecloud-platform-client-v2/api/AuthorizationApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BackgroundAssistantApi {
5
5
  /**
6
6
  * BackgroundAssistant service.
7
7
  * @module purecloud-platform-client-v2/api/BackgroundAssistantApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BillingApi {
5
5
  /**
6
6
  * Billing service.
7
7
  * @module purecloud-platform-client-v2/api/BillingApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class BusinessRulesApi {
5
5
  /**
6
6
  * BusinessRules service.
7
7
  * @module purecloud-platform-client-v2/api/BusinessRulesApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CarrierServicesApi {
5
5
  /**
6
6
  * CarrierServices service.
7
7
  * @module purecloud-platform-client-v2/api/CarrierServicesApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CaseManagementApi {
5
5
  /**
6
6
  * CaseManagement service.
7
7
  * @module purecloud-platform-client-v2/api/CaseManagementApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class CoachingApi {
5
5
  /**
6
6
  * Coaching service.
7
7
  * @module purecloud-platform-client-v2/api/CoachingApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ContentManagementApi {
5
5
  /**
6
6
  * ContentManagement service.
7
7
  * @module purecloud-platform-client-v2/api/ContentManagementApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ConversationsApi {
5
5
  /**
6
6
  * Conversations service.
7
7
  * @module purecloud-platform-client-v2/api/ConversationsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DataPrivacyApi {
5
5
  /**
6
6
  * DataPrivacy service.
7
7
  * @module purecloud-platform-client-v2/api/DataPrivacyApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class DownloadsApi {
5
5
  /**
6
6
  * Downloads service.
7
7
  * @module purecloud-platform-client-v2/api/DownloadsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmailsApi {
5
5
  /**
6
6
  * Emails service.
7
7
  * @module purecloud-platform-client-v2/api/EmailsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EmployeeEngagementApi {
5
5
  /**
6
6
  * EmployeeEngagement service.
7
7
  * @module purecloud-platform-client-v2/api/EmployeeEngagementApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class EventsApi {
5
5
  /**
6
6
  * Events service.
7
7
  * @module purecloud-platform-client-v2/api/EventsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -1930,6 +1930,81 @@ class ExternalContactsApi {
1930
1930
  );
1931
1931
  }
1932
1932
 
1933
+ /**
1934
+ * Update a Contact Note
1935
+ *
1936
+ * @param {String} contactId ExternalContact Id
1937
+ * @param {String} noteId Note Id
1938
+ * @param {Object} body Note field to update
1939
+ * @param {Object} opts Optional parameters
1940
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
1941
+ */
1942
+ patchExternalcontactsContactNote(contactId, noteId, body, opts) {
1943
+ opts = opts || {};
1944
+
1945
+ // verify the required parameter 'contactId' is set
1946
+ if (contactId === undefined || contactId === null || contactId === '') {
1947
+ throw 'Missing the required parameter "contactId" when calling patchExternalcontactsContactNote';
1948
+ }
1949
+ // verify the required parameter 'noteId' is set
1950
+ if (noteId === undefined || noteId === null || noteId === '') {
1951
+ throw 'Missing the required parameter "noteId" when calling patchExternalcontactsContactNote';
1952
+ }
1953
+ // verify the required parameter 'body' is set
1954
+ if (body === undefined || body === null) {
1955
+ throw 'Missing the required parameter "body" when calling patchExternalcontactsContactNote';
1956
+ }
1957
+
1958
+ return this.apiClient.callApi(
1959
+ '/api/v2/externalcontacts/contacts/{contactId}/notes/{noteId}',
1960
+ 'PATCH',
1961
+ { 'contactId': contactId,'noteId': noteId },
1962
+ { },
1963
+ { },
1964
+ { },
1965
+ body,
1966
+ ['PureCloud OAuth'],
1967
+ ['application/json'],
1968
+ ['application/json'],
1969
+ opts['customHeaders']
1970
+ );
1971
+ }
1972
+
1973
+ /**
1974
+ * Update specific fields of an external organization
1975
+ *
1976
+ * @param {String} externalOrganizationId External Organization ID
1977
+ * @param {Object} body External Organization fields to update
1978
+ * @param {Object} opts Optional parameters
1979
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
1980
+ */
1981
+ patchExternalcontactsOrganization(externalOrganizationId, body, opts) {
1982
+ opts = opts || {};
1983
+
1984
+ // verify the required parameter 'externalOrganizationId' is set
1985
+ if (externalOrganizationId === undefined || externalOrganizationId === null || externalOrganizationId === '') {
1986
+ throw 'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganization';
1987
+ }
1988
+ // verify the required parameter 'body' is set
1989
+ if (body === undefined || body === null) {
1990
+ throw 'Missing the required parameter "body" when calling patchExternalcontactsOrganization';
1991
+ }
1992
+
1993
+ return this.apiClient.callApi(
1994
+ '/api/v2/externalcontacts/organizations/{externalOrganizationId}',
1995
+ 'PATCH',
1996
+ { 'externalOrganizationId': externalOrganizationId },
1997
+ { },
1998
+ { },
1999
+ { },
2000
+ body,
2001
+ ['PureCloud OAuth'],
2002
+ ['application/json'],
2003
+ ['application/json'],
2004
+ opts['customHeaders']
2005
+ );
2006
+ }
2007
+
1933
2008
  /**
1934
2009
  * Claim or release identifiers for an external organization
1935
2010
  *
@@ -1965,6 +2040,81 @@ class ExternalContactsApi {
1965
2040
  );
1966
2041
  }
1967
2042
 
2043
+ /**
2044
+ * Update an External Organization Note
2045
+ *
2046
+ * @param {String} externalOrganizationId External Organization Id
2047
+ * @param {String} noteId Note Id
2048
+ * @param {Object} body Note field to update
2049
+ * @param {Object} opts Optional parameters
2050
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
2051
+ */
2052
+ patchExternalcontactsOrganizationNote(externalOrganizationId, noteId, body, opts) {
2053
+ opts = opts || {};
2054
+
2055
+ // verify the required parameter 'externalOrganizationId' is set
2056
+ if (externalOrganizationId === undefined || externalOrganizationId === null || externalOrganizationId === '') {
2057
+ throw 'Missing the required parameter "externalOrganizationId" when calling patchExternalcontactsOrganizationNote';
2058
+ }
2059
+ // verify the required parameter 'noteId' is set
2060
+ if (noteId === undefined || noteId === null || noteId === '') {
2061
+ throw 'Missing the required parameter "noteId" when calling patchExternalcontactsOrganizationNote';
2062
+ }
2063
+ // verify the required parameter 'body' is set
2064
+ if (body === undefined || body === null) {
2065
+ throw 'Missing the required parameter "body" when calling patchExternalcontactsOrganizationNote';
2066
+ }
2067
+
2068
+ return this.apiClient.callApi(
2069
+ '/api/v2/externalcontacts/organizations/{externalOrganizationId}/notes/{noteId}',
2070
+ 'PATCH',
2071
+ { 'externalOrganizationId': externalOrganizationId,'noteId': noteId },
2072
+ { },
2073
+ { },
2074
+ { },
2075
+ body,
2076
+ ['PureCloud OAuth'],
2077
+ ['application/json'],
2078
+ ['application/json'],
2079
+ opts['customHeaders']
2080
+ );
2081
+ }
2082
+
2083
+ /**
2084
+ * Update specific fields of a relationship
2085
+ *
2086
+ * @param {String} relationshipId Relationship Id
2087
+ * @param {Object} body Relationship fields to update
2088
+ * @param {Object} opts Optional parameters
2089
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
2090
+ */
2091
+ patchExternalcontactsRelationship(relationshipId, body, opts) {
2092
+ opts = opts || {};
2093
+
2094
+ // verify the required parameter 'relationshipId' is set
2095
+ if (relationshipId === undefined || relationshipId === null || relationshipId === '') {
2096
+ throw 'Missing the required parameter "relationshipId" when calling patchExternalcontactsRelationship';
2097
+ }
2098
+ // verify the required parameter 'body' is set
2099
+ if (body === undefined || body === null) {
2100
+ throw 'Missing the required parameter "body" when calling patchExternalcontactsRelationship';
2101
+ }
2102
+
2103
+ return this.apiClient.callApi(
2104
+ '/api/v2/externalcontacts/relationships/{relationshipId}',
2105
+ 'PATCH',
2106
+ { 'relationshipId': relationshipId },
2107
+ { },
2108
+ { },
2109
+ { },
2110
+ body,
2111
+ ['PureCloud OAuth'],
2112
+ ['application/json'],
2113
+ ['application/json'],
2114
+ opts['customHeaders']
2115
+ );
2116
+ }
2117
+
1968
2118
  /**
1969
2119
  * Bulk fetch contacts
1970
2120
  *
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FlowsApi {
5
5
  /**
6
6
  * Flows service.
7
7
  * @module purecloud-platform-client-v2/api/FlowsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GamificationApi {
5
5
  /**
6
6
  * Gamification service.
7
7
  * @module purecloud-platform-client-v2/api/GamificationApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeneralDataProtectionRegulationApi {
5
5
  /**
6
6
  * GeneralDataProtectionRegulation service.
7
7
  * @module purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GeolocationApi {
5
5
  /**
6
6
  * Geolocation service.
7
7
  * @module purecloud-platform-client-v2/api/GeolocationApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GreetingsApi {
5
5
  /**
6
6
  * Greetings service.
7
7
  * @module purecloud-platform-client-v2/api/GreetingsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class GroupsApi {
5
5
  /**
6
6
  * Groups service.
7
7
  * @module purecloud-platform-client-v2/api/GroupsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IdentityProviderApi {
5
5
  /**
6
6
  * IdentityProvider service.
7
7
  * @module purecloud-platform-client-v2/api/IdentityProviderApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class InfrastructureAsCodeApi {
5
5
  /**
6
6
  * InfrastructureAsCode service.
7
7
  * @module purecloud-platform-client-v2/api/InfrastructureAsCodeApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntegrationsApi {
5
5
  /**
6
6
  * Integrations service.
7
7
  * @module purecloud-platform-client-v2/api/IntegrationsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -219,6 +219,7 @@ class IntegrationsApi {
219
219
  * @param {Array.<String>} opts.ids Comma-separated list of integration IDs to filter by (max 100)
220
220
  * @param {String} opts.integrationType Filter integrations by integration type ID
221
221
  * @param {Object} opts.reportedState Filter integrations by reported state (case-insensitive)
222
+ * @param {String} opts.credentialId Filter integrations by credential ID
222
223
  * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
223
224
  */
224
225
  getIntegrations(opts) {
@@ -229,7 +230,7 @@ class IntegrationsApi {
229
230
  '/api/v2/integrations',
230
231
  'GET',
231
232
  { },
232
- { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'integrationType': opts['integrationType'],'reportedState': opts['reportedState'] },
233
+ { 'pageSize': opts['pageSize'],'pageNumber': opts['pageNumber'],'sortBy': opts['sortBy'],'expand': this.apiClient.buildCollectionParam(opts['expand'], 'multi'),'nextPage': opts['nextPage'],'previousPage': opts['previousPage'],'ids': this.apiClient.buildCollectionParam(opts['ids'], 'multi'),'integrationType': opts['integrationType'],'reportedState': opts['reportedState'],'credentialId': opts['credentialId'] },
233
234
  { },
234
235
  { },
235
236
  null,
@@ -5,7 +5,7 @@ class IntentsApi {
5
5
  /**
6
6
  * Intents service.
7
7
  * @module purecloud-platform-client-v2/api/IntentsApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class JourneyApi {
5
5
  /**
6
6
  * Journey service.
7
7
  * @module purecloud-platform-client-v2/api/JourneyApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class KnowledgeApi {
5
5
  /**
6
6
  * Knowledge service.
7
7
  * @module purecloud-platform-client-v2/api/KnowledgeApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguageUnderstandingApi {
5
5
  /**
6
6
  * LanguageUnderstanding service.
7
7
  * @module purecloud-platform-client-v2/api/LanguageUnderstandingApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class LanguagesApi {
5
5
  /**
6
6
  * Languages service.
7
7
  * @module purecloud-platform-client-v2/api/LanguagesApi
8
- * @version 255.1.0
8
+ * @version 256.0.0
9
9
  */
10
10
 
11
11
  /**