purecloud-platform-client-v2 251.2.0 → 252.1.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 (97) hide show
  1. package/README.md +3 -3
  2. package/dist/node/purecloud-platform-client-v2.js +400 -130
  3. package/dist/web-amd/purecloud-platform-client-v2.js +400 -130
  4. package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
  5. package/dist/web-cjs/bundle.js +25684 -25549
  6. package/dist/web-cjs/purecloud-platform-client-v2.js +25684 -25549
  7. package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
  8. package/index.d.ts +312 -94
  9. package/package.json +6 -5
  10. package/src/purecloud-platform-client-v2/ApiClient.js +9 -6
  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 +38 -2
  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 +32 -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 +72 -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 +32 -1
  36. package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -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 +1 -1
  47. package/src/purecloud-platform-client-v2/api/IntentsApi.js +1 -1
  48. package/src/purecloud-platform-client-v2/api/JourneyApi.js +49 -33
  49. package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +4 -2
  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 +1 -1
  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 +1 -1
  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/ScriptsApi.js +1 -1
  73. package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
  74. package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
  75. package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +1 -1
  76. package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
  77. package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
  78. package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
  79. package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +2 -2
  80. package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
  81. package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
  82. package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
  83. package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
  84. package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
  85. package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
  86. package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
  87. package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
  88. package/src/purecloud-platform-client-v2/api/UsersApi.js +83 -3
  89. package/src/purecloud-platform-client-v2/api/UsersRulesApi.js +1 -1
  90. package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
  91. package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
  92. package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
  93. package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
  94. package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
  95. package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
  96. package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +1 -1
  97. package/src/purecloud-platform-client-v2/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "purecloud-platform-client-v2",
3
- "version": "251.2.0",
3
+ "version": "252.1.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",
@@ -30,10 +30,10 @@
30
30
  "url": "https://developer.genesys.cloud/"
31
31
  },
32
32
  "dependencies": {
33
- "axios": "^1.15.2",
34
- "configparser": "^0.3.9",
35
- "qs": "^6.15.0",
36
- "winston": "^3.17.0"
33
+ "axios": "^1.16.0",
34
+ "configparser": "^0.3.10",
35
+ "qs": "^6.15.1",
36
+ "winston": "^3.19.0"
37
37
  },
38
38
  "devDependencies": {
39
39
  "mocha": "~9.2.0",
@@ -41,6 +41,7 @@
41
41
  "expect.js": "~0.3.1",
42
42
  "@babel/core": "^7.23.3",
43
43
  "@babel/preset-env": "^7.23.3",
44
+ "@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
44
45
  "rollup": "^2.79.1",
45
46
  "uglify-es": "^3.3.9",
46
47
  "browserify": "^17.0.0",
@@ -6,7 +6,7 @@ import { default as qs } from 'qs';
6
6
 
7
7
  /**
8
8
  * @module purecloud-platform-client-v2/ApiClient
9
- * @version 251.2.0
9
+ * @version 252.1.0
10
10
  */
11
11
  class ApiClient {
12
12
  /**
@@ -680,9 +680,12 @@ class ApiClient {
680
680
  // Get access token from response
681
681
  var access_token = response.data.access_token;
682
682
 
683
- this.setAccessToken(access_token);
684
- this.authData.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
685
- this.authData.tokenExpiryTimeString = new Date(this.authData.tokenExpiryTime).toUTCString();
683
+ let optsSettings = { accessToken: access_token };
684
+ if (response.data['expires_in'] !== null && response.data['expires_in'] !== undefined) {
685
+ optsSettings.tokenExpiryTime = new Date().getTime() + response.data['expires_in'] * 1000;
686
+ optsSettings.tokenExpiryTimeString = new Date(optsSettings.tokenExpiryTime).toUTCString();
687
+ }
688
+ this._saveSettings(optsSettings);
686
689
 
687
690
  // Return auth data
688
691
  resolve(this.authData);
@@ -806,9 +809,9 @@ class ApiClient {
806
809
  return new Promise((resolve, reject) => {
807
810
  // Abort if org and provider are not set together
808
811
  if (opts.org && !opts.provider) {
809
- reject(new Error('opts.provider must be set if opts.org is set'));
812
+ return reject(new Error('opts.provider must be set if opts.org is set'));
810
813
  } else if (opts.provider && !opts.org) {
811
- reject(new Error('opts.org must be set if opts.provider is set'));
814
+ return reject(new Error('opts.org must be set if opts.provider is set'));
812
815
  }
813
816
 
814
817
  // Abort on auth error
@@ -5,7 +5,7 @@ class AIStudioApi {
5
5
  /**
6
6
  * AIStudio service.
7
7
  * @module purecloud-platform-client-v2/api/AIStudioApi
8
- * @version 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -3997,12 +3997,48 @@ class ArchitectApi {
3997
3997
  }
3998
3998
 
3999
3999
  /**
4000
- * Begin an import process for importing rows into a datatable
4000
+ * Begin an import process for importing rows from a CSV file into a datatable. CSV file is uploaded by performing a PUT request against the URL in the returned 'uploadURI' field. Headers for the PUT request must contain all headers contained in the returned 'uploadHeaders' field.
4001
+ * Create an import job for importing rows from a CSV file. The caller can then poll for status of the import using the token returned in the response
4002
+ * @param {String} datatableId id of datatable
4003
+ * @param {Object} body import job information
4004
+ * @param {Object} opts Optional parameters
4005
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
4006
+ */
4007
+ postFlowsDatatableImportCsvJobs(datatableId, body, opts) {
4008
+ opts = opts || {};
4009
+
4010
+ // verify the required parameter 'datatableId' is set
4011
+ if (datatableId === undefined || datatableId === null || datatableId === '') {
4012
+ throw 'Missing the required parameter "datatableId" when calling postFlowsDatatableImportCsvJobs';
4013
+ }
4014
+ // verify the required parameter 'body' is set
4015
+ if (body === undefined || body === null) {
4016
+ throw 'Missing the required parameter "body" when calling postFlowsDatatableImportCsvJobs';
4017
+ }
4018
+
4019
+ return this.apiClient.callApi(
4020
+ '/api/v2/flows/datatables/{datatableId}/import/csv/jobs',
4021
+ 'POST',
4022
+ { 'datatableId': datatableId },
4023
+ { },
4024
+ { },
4025
+ { },
4026
+ body,
4027
+ ['PureCloud OAuth'],
4028
+ ['application/json'],
4029
+ ['application/json'],
4030
+ opts['customHeaders']
4031
+ );
4032
+ }
4033
+
4034
+ /**
4035
+ * Begin an import process for importing rows into a datatable. Apps should migrate to use POST /api/v2/flows/datatables/{datatableId}/import/csv/jobs instead
4001
4036
  * Create an import job for importing rows. The caller can then poll for status of the import using the token returned in the response
4002
4037
  * @param {String} datatableId id of datatable
4003
4038
  * @param {Object} body import job information
4004
4039
  * @param {Object} opts Optional parameters
4005
4040
  * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
4041
+ * @deprecated
4006
4042
  */
4007
4043
  postFlowsDatatableImportJobs(datatableId, body, opts) {
4008
4044
  opts = opts || {};
@@ -5,7 +5,7 @@ class AssistantCopilotVariationsApi {
5
5
  /**
6
6
  * AssistantCopilotVariations service.
7
7
  * @module purecloud-platform-client-v2/api/AssistantCopilotVariationsApi
8
- * @version 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -1167,6 +1167,37 @@ class CaseManagementApi {
1167
1167
  );
1168
1168
  }
1169
1169
 
1170
+ /**
1171
+ * Query for caseplans
1172
+ *
1173
+ * @param {Object} body CaseplanQueryRequest
1174
+ * @param {Object} opts Optional parameters
1175
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
1176
+ * postCasemanagementCaseplansQuery is a preview method and is subject to both breaking and non-breaking changes at any time without notice
1177
+ */
1178
+ postCasemanagementCaseplansQuery(body, opts) {
1179
+ opts = opts || {};
1180
+
1181
+ // verify the required parameter 'body' is set
1182
+ if (body === undefined || body === null) {
1183
+ throw 'Missing the required parameter "body" when calling postCasemanagementCaseplansQuery';
1184
+ }
1185
+
1186
+ return this.apiClient.callApi(
1187
+ '/api/v2/casemanagement/caseplans/query',
1188
+ 'POST',
1189
+ { },
1190
+ { },
1191
+ { },
1192
+ { },
1193
+ body,
1194
+ ['PureCloud OAuth'],
1195
+ ['application/json'],
1196
+ ['application/json'],
1197
+ opts['customHeaders']
1198
+ );
1199
+ }
1200
+
1170
1201
  /**
1171
1202
  * Create a Case.
1172
1203
  *
@@ -5,7 +5,7 @@ class ChatApi {
5
5
  /**
6
6
  * Chat service.
7
7
  * @module purecloud-platform-client-v2/api/ChatApi
8
- * @version 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -893,6 +893,37 @@ class ConversationsApi {
893
893
  );
894
894
  }
895
895
 
896
+ /**
897
+ * Get copilot context values for a conversation.
898
+ *
899
+ * @param {String} conversationId Conversation ID.
900
+ * @param {Object} opts Optional parameters
901
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
902
+ * getConversationAssistantCopilotcontext is a preview method and is subject to both breaking and non-breaking changes at any time without notice
903
+ */
904
+ getConversationAssistantCopilotcontext(conversationId, opts) {
905
+ opts = opts || {};
906
+
907
+ // verify the required parameter 'conversationId' is set
908
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
909
+ throw 'Missing the required parameter "conversationId" when calling getConversationAssistantCopilotcontext';
910
+ }
911
+
912
+ return this.apiClient.callApi(
913
+ '/api/v2/conversations/{conversationId}/assistant/copilotcontext',
914
+ 'GET',
915
+ { 'conversationId': conversationId },
916
+ { },
917
+ { },
918
+ { },
919
+ null,
920
+ ['PureCloud OAuth'],
921
+ ['application/json'],
922
+ ['application/json'],
923
+ opts['customHeaders']
924
+ );
925
+ }
926
+
896
927
  /**
897
928
  * Get checklist info for a single checklist.
898
929
  *
@@ -6047,6 +6078,46 @@ class ConversationsApi {
6047
6078
  );
6048
6079
  }
6049
6080
 
6081
+ /**
6082
+ * Update conversation by setting its parking state
6083
+ *
6084
+ * @param {String} conversationId conversationId
6085
+ * @param {String} participantId participantId
6086
+ * @param {Object} body Parking update request
6087
+ * @param {Object} opts Optional parameters
6088
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
6089
+ */
6090
+ patchConversationsMessageParticipantParkingstate(conversationId, participantId, body, opts) {
6091
+ opts = opts || {};
6092
+
6093
+ // verify the required parameter 'conversationId' is set
6094
+ if (conversationId === undefined || conversationId === null || conversationId === '') {
6095
+ throw 'Missing the required parameter "conversationId" when calling patchConversationsMessageParticipantParkingstate';
6096
+ }
6097
+ // verify the required parameter 'participantId' is set
6098
+ if (participantId === undefined || participantId === null || participantId === '') {
6099
+ throw 'Missing the required parameter "participantId" when calling patchConversationsMessageParticipantParkingstate';
6100
+ }
6101
+ // verify the required parameter 'body' is set
6102
+ if (body === undefined || body === null) {
6103
+ throw 'Missing the required parameter "body" when calling patchConversationsMessageParticipantParkingstate';
6104
+ }
6105
+
6106
+ return this.apiClient.callApi(
6107
+ '/api/v2/conversations/messages/{conversationId}/participants/{participantId}/parkingstate',
6108
+ 'PATCH',
6109
+ { 'conversationId': conversationId,'participantId': participantId },
6110
+ { },
6111
+ { },
6112
+ { },
6113
+ body,
6114
+ ['PureCloud OAuth'],
6115
+ ['application/json'],
6116
+ ['application/json'],
6117
+ opts['customHeaders']
6118
+ );
6119
+ }
6120
+
6050
6121
  /**
6051
6122
  * Update an Apple messaging integration
6052
6123
  *
@@ -5,7 +5,7 @@ class DataExtensionsApi {
5
5
  /**
6
6
  * DataExtensions service.
7
7
  * @module purecloud-platform-client-v2/api/DataExtensionsApi
8
- * @version 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -50,6 +50,37 @@ class EventsApi {
50
50
  );
51
51
  }
52
52
 
53
+ /**
54
+ * Publish Predictive Routing Custom Kpi Attribution Batch Events
55
+ *
56
+ * @param {Object} body batchRequest
57
+ * @param {Object} opts Optional parameters
58
+ * @param {Object.<string, string>} opts.customHeaders Per-request HTTP headers
59
+ * postEventsRoutingCustomkpiattributions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
60
+ */
61
+ postEventsRoutingCustomkpiattributions(body, opts) {
62
+ opts = opts || {};
63
+
64
+ // verify the required parameter 'body' is set
65
+ if (body === undefined || body === null) {
66
+ throw 'Missing the required parameter "body" when calling postEventsRoutingCustomkpiattributions';
67
+ }
68
+
69
+ return this.apiClient.callApi(
70
+ '/api/v2/events/routing/customkpiattributions',
71
+ 'POST',
72
+ { },
73
+ { },
74
+ { },
75
+ { },
76
+ body,
77
+ ['PureCloud OAuth'],
78
+ ['application/json'],
79
+ ['application/json'],
80
+ opts['customHeaders']
81
+ );
82
+ }
83
+
53
84
  /**
54
85
  * Publish User Presence Status Batch Events
55
86
  *
@@ -5,7 +5,7 @@ class ExternalContactsApi {
5
5
  /**
6
6
  * ExternalContacts service.
7
7
  * @module purecloud-platform-client-v2/api/ExternalContactsApi
8
- * @version 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class FaxApi {
5
5
  /**
6
6
  * Fax service.
7
7
  * @module purecloud-platform-client-v2/api/FaxApi
8
- * @version 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.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 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**
@@ -5,7 +5,7 @@ class IntentsApi {
5
5
  /**
6
6
  * Intents service.
7
7
  * @module purecloud-platform-client-v2/api/IntentsApi
8
- * @version 251.2.0
8
+ * @version 252.1.0
9
9
  */
10
10
 
11
11
  /**